Fix decoding issue in realip-download.py job

This commit is contained in:
Théophile Diot 2024-05-31 14:06:26 +01:00
parent dcf2b9e185
commit ac6a9f648c
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -20,11 +20,11 @@ from jobs import Job # type: ignore
def check_line(line):
with suppress(ValueError):
if "/" in line:
ip_network(line)
if b"/" in line:
ip_network(line.decode())
return True, line
else:
ip_address(line)
ip_address(line.decode())
return True, line
return False, b""