mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
-
This commit is contained in:
parent
76fde311c9
commit
eff1798503
@ -56,15 +56,16 @@ class DelugeGTK:
|
||||
p = "DE"
|
||||
v = "0500"
|
||||
s = "%s %s"%(dcommon.PROGRAM_NAME, dcommon.PROGRAM_VERSION)
|
||||
try:
|
||||
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
||||
except:
|
||||
# If something goes wrong while restoring the session, then load
|
||||
# a blank state rather than crash and exit
|
||||
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR, blank_slate=True)
|
||||
self.something_screwed_up = True
|
||||
|
||||
else: self.something_screwed_up = False
|
||||
#try:
|
||||
# self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
||||
#except:
|
||||
# # If something goes wrong while restoring the session, then load
|
||||
# # a blank state rather than crash and exit
|
||||
# self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR, blank_slate=True)
|
||||
# self.something_screwed_up = True
|
||||
self.manager = deluge.Manager(p, v, s, dcommon.CONFIG_DIR)
|
||||
self.something_screwed_up = False
|
||||
#else: self.something_screwed_up = False
|
||||
self.plugins = delugeplugins.PluginManager(self.manager, self)
|
||||
self.plugins.add_plugin_dir(dcommon.PLUGIN_DIR)
|
||||
if os.path.isdir(dcommon.CONFIG_DIR + '/plugins'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user