Skip to content
Snippets Groups Projects
Commit f426b743 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 b8bf6d51
No related branches found
No related tags found
1 merge request!196#390: send_document(): Exit the program in case an HTTPError exception is raised
...@@ -90,4 +90,4 @@ def send_document(bma_path, document): ...@@ -90,4 +90,4 @@ def send_document(bma_path, document):
client(bma_path, document.signed_raw()) client(bma_path, document.signed_raw())
print(f"{doc_name} successfully sent") print(f"{doc_name} successfully sent")
except urllib.error.HTTPError as e: 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