mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Fix crash
This commit is contained in:
parent
b9aaef110f
commit
a44099a9e0
@ -173,7 +173,10 @@ def client(port, op = "ping", host = 'bore.del.pw'):
|
|||||||
return "old"
|
return "old"
|
||||||
|
|
||||||
# Скачиваем файлы
|
# Скачиваем файлы
|
||||||
|
try:
|
||||||
g_site = get(f"http://{host}:{str(port)}/{site}.zip")
|
g_site = get(f"http://{host}:{str(port)}/{site}.zip")
|
||||||
|
except:
|
||||||
|
return 'error'
|
||||||
print('SIZE: ', g_site.headers['Content-Length']) # Размер
|
print('SIZE: ', g_site.headers['Content-Length']) # Размер
|
||||||
|
|
||||||
with open(f"verify/{site}.zip", "wb") as f:
|
with open(f"verify/{site}.zip", "wb") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user