diff options
author | 2015-04-18 00:29:55 +0200 | |
---|---|---|
committer | 2015-04-18 00:29:55 +0200 | |
commit | bb5a115533711fd8bb87f53cb32ff7342137208d (patch) | |
tree | 476600f9896fae029880e4049eb4c5e6021b202d /pyload/Core.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff) | |
download | pyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz |
Spare code cosmetics (5)
Diffstat (limited to 'pyload/Core.py')
-rwxr-xr-x | pyload/Core.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/Core.py b/pyload/Core.py index cd210344d..e6f6fefcb 100755 --- a/pyload/Core.py +++ b/pyload/Core.py @@ -197,7 +197,8 @@ class Core(object): def isAlreadyRunning(self): pid = self.checkPidFile() - if not pid or os.name == "nt": return False + if not pid or os.name == "nt": + return False try: os.kill(pid, 0) # 0 - default signal (does nothing) except Exception: @@ -277,7 +278,8 @@ class Core(object): exit() try: signal.signal(signal.SIGQUIT, self.quit) - except Exception: pass + except Exception: + pass self.config = ConfigParser() |