Skip to content
Browse files

Fix logic for events that should not be sent

In the event that the 'tags' key is empty, continue, not pass, through the
loop, and wait for the next iteration.
  • Loading branch information...
1 parent 0ec0ec8 commit 38b5594f20ac646d95d1bd3a9740b8a3131b8cb8 @atoponce committed Aug 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 email-0mq.py
View
4 email-0mq.py
@@ -24,8 +24,8 @@
f.close()
# When day changes, the 'tags' value list will be empty. Ignore.
- if y.values()[0] == []:
- pass
+ if not y.values()[0]:
+ continue
# Format is:
# ['tags', 'away', 'server', 'date', 'highlight', 'message', 'type', 'channel']

0 comments on commit 38b5594

Please sign in to comment.
Something went wrong with that request. Please try again.