Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeated _save_msg_to_queue procedure until message can be saved. issue 64 #249

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
6 changes: 5 additions & 1 deletion ssm/ssm2.py
Original file line number Diff line number Diff line change
@@ -343,7 +343,11 @@ def _save_msg_to_queue(self, body, empaid):
name = self._inq.add({'body': extracted_msg,
'signer': signer,
'empaid': empaid})
log.info("Message saved to incoming queue as %s", name)
try:
log.info("Message saved to incoming queue as %s", name)
except:
_save_msg_to_queue(self, body, empaid)


except (IOError, OSError) as error:
log.error('Failed to read or write file: %s', error)