Handle all IPCErrors properly.

This commit is contained in:
Florian Bruhin 2015-01-16 11:34:15 +01:00
parent c98bfa9a9d
commit b3b576f5d2

View File

@ -106,12 +106,11 @@ class Application(QApplication):
print(version.GPL_BOILERPLATE.strip())
sys.exit(0)
sent = ipc.send_to_running_instance(self._args.command)
if sent:
sys.exit(0)
log.init.debug("Starting IPC server...")
try:
sent = ipc.send_to_running_instance(self._args.command)
if sent:
sys.exit(0)
log.init.debug("Starting IPC server...")
ipc.init()
except ipc.IPCError as e:
text = ('{}\n\nMaybe another instance is running but '