Skip to content

Commit

Permalink
deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Jan 9, 2024
1 parent 7962d9d commit 09352a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf/supervisor_worker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ command=python tasks.py
autorestart=true
priority=900
stopasgroup=true
startsecs = 10
startsecs = 5
startretries = 100

redirect_stderr=true
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ youtube-search-python==1.6.6
token-bucket==0.3.0
coloredlogs==15.0.1
tronpy==0.4.0
mnemonic==0.20
mnemonic==0.21
qrcode==7.4.2
blinker==1.7.0
flask===3.0.0
2 changes: 1 addition & 1 deletion ytdlbot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def next_salt_detector(self):

def connection_reset_detector(self):
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())
return True

Expand Down

0 comments on commit 09352a1

Please sign in to comment.