commit c43b48f4f59d3214bbb3fa851d6e039f086adb45
parent 2e06a9d0200d46eda2b235a9f1832ab445623ddf
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 24 Sep 2017 09:40:33 +0200
Merge pull request #2917 from SomberNight/get_server
log: identify exception source in log for daemon/get_server
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/daemon.py b/lib/daemon.py
@@ -87,8 +87,7 @@ def get_server(config):
server.ping()
return server
except Exception as e:
- print_error(e)
- pass
+ print_error("[get_server]", e)
if not create_time or create_time < time.time() - 1.0:
return None
# Sleep a bit and try again; it might have just been started