Skip to content

Commit

Permalink
Another place messages can disappear.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedshaw committed Mar 6, 2013
1 parent a8df85c commit 7b45586
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lamson/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ def get(self, key):

def remove(self, key):
"""Removes the queue, but not returned."""
self.mbox.remove(key)
try:
self.mbox.remove(key)
except IOError:
logging.exception("Failed to remove message from queue.")

def count(self):
"""Returns the number of messages in the queue."""
Expand Down

0 comments on commit 7b45586

Please sign in to comment.