mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Improve error handling in mmdb-asn and mmdb-country scripts
This commit is contained in:
parent
dc9774f386
commit
c3a903dc98
2 changed files with 4 additions and 4 deletions
|
|
@ -84,8 +84,8 @@ try:
|
|||
for chunk in resp.iter_content(chunk_size=4 * 1024):
|
||||
if chunk:
|
||||
file_content.write(chunk)
|
||||
except RequestException:
|
||||
LOGGER.error(f"Error while downloading mmdb file from {mmdb_url}")
|
||||
except RequestException as e:
|
||||
LOGGER.error(f"Error while downloading mmdb file from {mmdb_url}: {e}")
|
||||
sys_exit(2)
|
||||
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -84,8 +84,8 @@ try:
|
|||
for chunk in resp.iter_content(chunk_size=4 * 1024):
|
||||
if chunk:
|
||||
file_content.write(chunk)
|
||||
except RequestException:
|
||||
LOGGER.error(f"Error while downloading mmdb file from {mmdb_url}")
|
||||
except RequestException as e:
|
||||
LOGGER.error(f"Error while downloading mmdb file from {mmdb_url}: {e}")
|
||||
sys_exit(2)
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue