From 7ba2a4f18b7a9aee1847c65d6d8a561728ca7730 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Sun, 5 May 2013 17:52:57 -0400 Subject: [PATCH] Close application if not daemon and PyQt not found --- src/bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index d47dd1fd..0abfcfd8 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -3930,7 +3930,7 @@ if __name__ == "__main__": except Exception, err: print 'PyBitmessage requires PyQt unless you want to run it as a daemon and interact with it using the API. You can download PyQt from http://www.riverbankcomputing.com/software/pyqt/download or by searching Google for \'PyQt Download\'. If you want to run in daemon mode, see https://bitmessage.org/wiki/Daemon' print 'Error message:', err - sys.exit() + os._exit(0) import bitmessageqt bitmessageqt.run()