mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
try/else pass for pygtk.require
This commit is contained in:
parent
d965adff82
commit
bb86fefe66
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@
|
||||||
# statement from all source files in the program, then also delete it here.
|
# statement from all source files in the program, then also delete it here.
|
||||||
|
|
||||||
import pygtk
|
import pygtk
|
||||||
pygtk.require('2.0')
|
try:
|
||||||
|
pygtk.require('2.0')
|
||||||
|
else:
|
||||||
|
pass
|
||||||
import gtk, gtk.glade
|
import gtk, gtk.glade
|
||||||
import gettext
|
import gettext
|
||||||
import locale
|
import locale
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue