1
0

trezor: segwit offline signing

This commit is contained in:
SomberNight
2018-03-03 02:39:49 +01:00
parent 7816edc342
commit 0df6d1ec97
4 changed files with 27 additions and 6 deletions

View File

@@ -74,6 +74,16 @@ class FileExportFailed(Exception):
return _("Failed to export to file.") + "\n" + self.message
class TimeoutException(Exception):
def __init__(self, message=''):
self.message = str(message)
def __str__(self):
if not self.message:
return _("Operation timed out.")
return self.message
# Throw this exception to unwind the stack like when an error occurs.
# However unlike other exceptions the user won't be informed.
class UserCancelled(Exception):