From 46827fd6837b86a2d18ed585bcb667228ed03cd8 Mon Sep 17 00:00:00 2001 From: BennyThink Date: Wed, 9 Feb 2022 14:37:40 +0800 Subject: [PATCH] kill with code update, socat change --- docker-compose.yml | 2 +- ytdlbot/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bc84164..e6012c1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.1' services: socat: - image: jmb12686/socat + image: bennythink/socat restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock diff --git a/ytdlbot/utils.py b/ytdlbot/utils.py index bf86959..d36a53c 100644 --- a/ytdlbot/utils.py +++ b/ytdlbot/utils.py @@ -197,7 +197,7 @@ class Detector: def updates_too_long_detector(self): # If you're seeing this, that means you have logged more than 10 device # and this earliest account was kicked out. Restart the program could get you back in. - indicators = ["types.UpdatesTooLong", "Got shutdown from remote"] + indicators = ["types.UpdatesTooLong", "Got shutdown from remote", "Code is updated"] for indicator in indicators: if indicator in self.logs: logging.warning("Potential crash detected by %s, it's time to commit suicide...", self.func_name())