Skip to content
Snippets Groups Projects
Commit 513b5c97 authored by Moul's avatar Moul
Browse files

[enh] #390: send_doc: Exit the programm in case of HTTPError exception

got raised
Exiting the programm is not an issue for all the send document cmds
Even for the intermediaries tx case, since this is change operations
operated over the issuer pubkey
parent 60eb5dc2
No related branches found
No related tags found
No related merge requests found
......@@ -90,4 +90,4 @@ def send_document(bma_path, document):
client(bma_path, document.signed_raw())
print(f"{doc_name} successfully sent")
except urllib.error.HTTPError as e:
print(f"Error while publishing {doc_name.lower()}: {e}")
sys.exit(f"Error while publishing {doc_name.lower()}: {e}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment