mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
curl message
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user