Skip to content

Commit 5211ecc

Browse files
procedure repeated issue 64
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.
1 parent eb31217 commit 5211ecc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ssm/ssm2.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,11 @@ def _save_msg_to_queue(self, body, empaid):
343343
name = self._inq.add({'body': extracted_msg,
344344
'signer': signer,
345345
'empaid': empaid})
346-
log.info("Message saved to incoming queue as %s", name)
346+
try:
347+
log.info("Message saved to incoming queue as %s", name)
348+
except:
349+
_save_msg_to_queue(self, body, empaid)
350+
347351

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

0 commit comments

Comments
 (0)