Skip to content

Commit

Permalink
Updated the exception handling to pass error to munin
Browse files Browse the repository at this point in the history
  • Loading branch information
rwohleb committed Feb 15, 2011
1 parent 7a499d9 commit 187050c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/header.py
Expand Up @@ -21,6 +21,6 @@ def doAutoConf():
raw = urllib2.urlopen( "http://%s:%d/_status" % (host, port) ).read()
print "yes"
return True
except urllib2.URLError:
print "no"
except urllib2.URLError as detail:
print "no (", detail, ")"
return False

0 comments on commit 187050c

Please sign in to comment.