mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-09-20 06:55:55 +08:00
deps
This commit is contained in:
parent
7962d9db00
commit
09352a1e61
|
@ -15,7 +15,7 @@ command=python tasks.py
|
||||||
autorestart=true
|
autorestart=true
|
||||||
priority=900
|
priority=900
|
||||||
stopasgroup=true
|
stopasgroup=true
|
||||||
startsecs = 10
|
startsecs = 5
|
||||||
startretries = 100
|
startretries = 100
|
||||||
|
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
|
|
|
@ -23,7 +23,7 @@ youtube-search-python==1.6.6
|
||||||
token-bucket==0.3.0
|
token-bucket==0.3.0
|
||||||
coloredlogs==15.0.1
|
coloredlogs==15.0.1
|
||||||
tronpy==0.4.0
|
tronpy==0.4.0
|
||||||
mnemonic==0.20
|
mnemonic==0.21
|
||||||
qrcode==7.4.2
|
qrcode==7.4.2
|
||||||
blinker==1.7.0
|
blinker==1.7.0
|
||||||
flask===3.0.0
|
flask===3.0.0
|
||||||
|
|
|
@ -183,7 +183,7 @@ class Detector:
|
||||||
|
|
||||||
def connection_reset_detector(self):
|
def connection_reset_detector(self):
|
||||||
text = "Send exception: ConnectionResetError Connection lost"
|
text = "Send exception: ConnectionResetError Connection lost"
|
||||||
if text in self.logs:
|
if self.logs.count(text) >= 5:
|
||||||
logging.critical("connection lost: %s ", self.func_name())
|
logging.critical("connection lost: %s ", self.func_name())
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue