summaryrefslogtreecommitdiffstats
path: root/pyload/Core.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-18 00:29:55 +0200
commitbb5a115533711fd8bb87f53cb32ff7342137208d (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/Core.py
parentPEP-8, Python Zen, refactor and reduce code (part 6 in master module/common) (diff)
downloadpyload-bb5a115533711fd8bb87f53cb32ff7342137208d.tar.xz
Spare code cosmetics (5)
Diffstat (limited to 'pyload/Core.py')
-rwxr-xr-xpyload/Core.py6
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()