Skip to content

Commit

Permalink
updated check_blue_talon_version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Dec 6, 2016
1 parent 4308cdf commit 42bac23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions check_blue_talon_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def get_version(self):
qquit('CRITICAL', _)
log.debug("response: %s %s", req.status_code, req.reason)
log.debug("content:\n%s\n%s\n%s", '='*80, req.content.strip(), '='*80)
if req.status_code != 200:
qquit('CRITICAL', '{0}: {1}'.format(req.status_code, req.reason))
try:
json_dict = json.loads(req.content)
if not isDict(json_dict):
Expand Down

0 comments on commit 42bac23

Please sign in to comment.