1
0

better handle exceptions in wizard re "cannot connect to trustedcoin server"

This commit is contained in:
SomberNight
2018-06-08 16:55:27 +02:00
committed by ThomasV
parent 4fea9edd11
commit cf80952071
4 changed files with 44 additions and 17 deletions

View File

@@ -539,8 +539,9 @@ class TrustedCoinPlugin(BasePlugin):
# secret must be sent by the server
try:
r = server.create(xpub1, xpub2, email)
except socket.error:
except (socket.error, ErrorConnectingServer):
wizard.show_message('Server not reachable, aborting')
wizard.terminate()
return
except TrustedCoinException as e:
if e.status_code == 409: