curl message

This commit is contained in:
Zsolt Ero
2024-06-24 20:44:39 +02:00
parent 37afbbb902
commit 1a20131723

View File

@@ -49,6 +49,6 @@ def pycurl_get(url, domain, host_ip):
c.close()
if status_code != 200:
raise ValueError('non-200')
raise ValueError(f'status code: {status_code}')
return buffer.getvalue().decode('utf8')