Skip to content

Instantly share code, notes, and snippets.

@sssoleileraaa
Created September 10, 2020 01:29
Show Gist options
  • Save sssoleileraaa/5ba70d50c12b6a6df6f98ed40ad09645 to your computer and use it in GitHub Desktop.
Save sssoleileraaa/5ba70d50c12b6a6df6f98ed40ad09645 to your computer and use it in GitHub Desktop.
diff --git a/securedrop_client/api_jobs/uploads.py b/securedrop_client/api_jobs/uploads.py
index 4ce61c9..5e06f8c 100644
--- a/securedrop_client/api_jobs/uploads.py
+++ b/securedrop_client/api_jobs/uploads.py
@@ -31,6 +31,7 @@ class SendReplyJob(SingleObjectApiJob):
"""
try:
+ raise Exception('testing error state for reply badges')
# If the reply has already made it to the server but we didn't get a 201 response back,
# then a reply with self.reply_uuid will exist in the replies table.
reply_db_object = session.query(Reply).filter_by(uuid=self.reply_uuid).one_or_none()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment