Improve exception print

This commit is contained in:
poka 2020-11-17 03:39:13 +01:00
parent 30ad8b08e6
commit 9f5ae2fb61
2 changed files with 4 additions and 2 deletions

View File

@ -106,4 +106,6 @@ def sendTXDoc(signedDoc):
except Exception as e:
message = ast.literal_eval(str(e))["message"]
sys.stderr.write("Echec de la transaction:\n" + message + "\n")
sys.exit(1)
sys.exit(1)

2
pay.py
View File

@ -13,7 +13,7 @@ try:
else:
comment = ""
except Exception as e:
print(str(e))
print("Please enter the recipient's public and the amount\n" + str(e))
sys.exit(1)
# Execute workflow