mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 08:33:56 +00:00
try/else pass for pygtk.require
This commit is contained in:
parent
d965adff82
commit
bb86fefe66
@ -32,7 +32,10 @@
|
||||
# statement from all source files in the program, then also delete it here.
|
||||
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
try:
|
||||
pygtk.require('2.0')
|
||||
else:
|
||||
pass
|
||||
import gtk, gtk.glade
|
||||
import gettext
|
||||
import locale
|
||||
|
Loading…
x
Reference in New Issue
Block a user