mirror of
https://github.com/SantaSpeen/Rcon-VK-Bot.git
synced 2025-07-03 08:15:26 +00:00
[+] timeout
This commit is contained in:
parent
9cae0e44b1
commit
0f39a3f1ad
@ -216,7 +216,7 @@ def enter_to_exit(exit_code=1):
|
||||
def new_version():
|
||||
print("Проверка версии...", end="")
|
||||
try:
|
||||
res = requests.get("https://raw.githubusercontent.com/SantaSpeen/Rcon-VK-Bot/master/win/metadata.yml")
|
||||
res = requests.get("https://raw.githubusercontent.com/SantaSpeen/Rcon-VK-Bot/master/win/metadata.yml", timeout=3)
|
||||
data = yaml.load(res.text)
|
||||
ver = data.get("Version")
|
||||
if ver and ver != __version__:
|
||||
|
Loading…
x
Reference in New Issue
Block a user