From 1a21fe414f95a64480bce92ff9e5b2413c544d40 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 24 Mar 2010 14:57:18 +0100 Subject: django 1.2 compability, some fixes --- pyLoadCore.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pyLoadCore.py') 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 = {} -- cgit v1.2.3