Skip to content
Snippets Groups Projects
Commit a42af6a9 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Add python <3.6 compatibility

parent 53f5332b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ def run_check(xymon):
title = ''.join([vuln, ': '])
vuln_file = Path(''.join([cpu_vulnerabilities_base, vuln]))
if vuln_file.is_file():
with open(vuln_file) as f:
with open(str(vuln_file)) as f:
content = '<br/>'.join(f.readlines())
if content.startswith('Vulnerable'):
title += 'Vulnerable'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment