From 84e4cc35f1cbb0df457305352b437edf0fca8104 Mon Sep 17 00:00:00 2001 From: HelloZeroNet Date: Tue, 31 Mar 2015 00:02:02 +0200 Subject: [PATCH] Updater fix --- update.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index cefa3744..6e600baf 100644 --- a/update.py +++ b/update.py @@ -1,5 +1,5 @@ from gevent import monkey; monkey.patch_all() -import urllib, zipfile, os, ssl, httplib, socket +import urllib, zipfile, os, ssl, httplib, socket, re import cStringIO as StringIO def update(): @@ -62,4 +62,8 @@ def update(): if __name__ == "__main__": - update() \ No newline at end of file + try: + update() + except Exception, err: + print "Update error: %s" % err + raw_input("Press enter to exit") \ No newline at end of file