Skip to content

Commit

Permalink
Merge pull request #3 from egrim/master
Browse files Browse the repository at this point in the history
Update the getter to detect responses with 'error_msg' and try next getter
  • Loading branch information
pjennings committed Jun 29, 2012
2 parents d86de1b + 222d352 commit 89613eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TStat.py
Expand Up @@ -236,7 +236,8 @@ def _get(self, key, raw=False):
l.debug("Got response: %s" % data)
try:
response = loads(data)
break
if 'error_msg' not in response:
break
except:
l.warning("Some problem with response: %s" % data)
response = None
Expand Down

0 comments on commit 89613eb

Please sign in to comment.