1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00

Fix multiple python code issues (detected by flake8)

This commit is contained in:
Lars Kruse 2019-08-13 05:01:44 +02:00
parent 7fed3b9765
commit be192b5226
3 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ def get_monit_status_xml():
auth_value = "Basic %s" % auth_base64_str
req.add_header("Authorization", auth_value)
conn = urllib.request.urlopen(req)
except urllib.error.URLError as exc:
except urllib.error.URLError:
conn = None
if conn is None:
raise RuntimeError("Failed to open monit status URL: {}".format(MONIT_XML_URL))