Skip to content

Commit

Permalink
procedure repeated issue 64
Browse files Browse the repository at this point in the history
resolve apel#64.   i was unsure which part needed to be repeated so i just repeated the whole function until the message can be saved into the queue, im not sure if this is right though.
  • Loading branch information
DanielPerkins7 committed Aug 1, 2023
1 parent eb31217 commit 5211ecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ssm/ssm2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5211ecc

Please sign in to comment.