summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-08-06 08:16:52 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-08-06 08:24:33 +0200
commit32c0816558ccecc464a3b35199ad4d1d6fe88dbf (patch)
treecc7f6d4da99ae8ab2073754c3d1f84e578b499de /bin
parent643509186d62090e04fc6086bf8fa708936333d0 (diff)
bin/report-vuln: decode the url data
We get a bytes object under python 3.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/report-vuln2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/report-vuln b/bin/report-vuln
index 986534159f..1900dc8d62 100755
--- a/bin/report-vuln
+++ b/bin/report-vuln
@@ -85,7 +85,7 @@ def get_cve(id):
ret = ''
resp = http_get(id)
- for line in resp.rsplit('\n'):
+ for line in resp.decode('utf-8').rsplit('\n'):
if r.match(line):
desc = True
continue

© 2014-2024 Faster IT GmbH | imprint | privacy policy