diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-03-24 14:57:18 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-03-24 14:57:18 +0100 |
commit | 1a21fe414f95a64480bce92ff9e5b2413c544d40 (patch) | |
tree | f966d71e25ea204bd54074b914e8388c765ffd04 /pyLoadCore.py | |
parent | handling SIGQUIT (diff) | |
download | pyload-1a21fe414f95a64480bce92ff9e5b2413c544d40.tar.xz |
django 1.2 compability, some fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 53d4be85c..d5b387baf 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -100,7 +100,7 @@ class Core(object): def print_help(self): print "" - print "pyload %s Copyright (c) 2008-2010 the pyLoad Team" % CURRENT_VERSION + print "pyLoad %s Copyright (c) 2008-2010 the pyLoad Team" % CURRENT_VERSION print "" print "Usage: [python] pyLoadCore.py [options]" print "" @@ -130,8 +130,9 @@ class Core(object): self.path = abspath(dirname(__file__)) chdir(self.path) - signal.signal(signal.SIGQUIT, self.quit) - + try: signal.signal(signal.SIGQUIT, self.quit) + except: pass + self.config = {} self.plugins_avaible = {} |