0

Fix up python3 detection

This commit is contained in:
Andrew Chin
2014-01-06 08:47:03 -05:00
parent 519e13a34f
commit a2780197cb
2 changed files with 18 additions and 9 deletions

View File

@@ -151,7 +151,7 @@ def main():
if util.pid_exists(pid):
print("Already running (pid exists) - exiting..")
return 0
except IOError, ValueError:
except (IOError, ValueError):
pass
with open(options.pid,"w") as f:
f.write(str(os.getpid()))