Skip to content
Snippets Groups Projects

#390: send_document(): Exit the program in case an HTTPError exception is raised

Merged #390: send_document(): Exit the program in case an HTTPError exception is raised
Merged Moul requested to merge 390_send_doc_exit_code into dev
2 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
1
@@ -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}")
Loading