Skip to content

Commit

Permalink
Fixes #53 by testing for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Maxwell committed Sep 2, 2014
1 parent da77ef1 commit f4fc7c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thresher.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def process_packetmail(response, source, direction):

def process_autoshun(response, source, direction):
data = []
if response.startswith("Couldn't select database"):
return data
for line in response.splitlines():
if not line.startswith('S') and len(line) > 0:
i = line.partition(',')[0].strip()
Expand Down

0 comments on commit f4fc7c4

Please sign in to comment.