From 9cc8cc4d8cb47224be4e18757048049337c3197c Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 7 Jun 2023 15:55:23 +0800 Subject: [PATCH] add new condition to exit bot. --- chrome_tixcraft.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index ccf0a1a..1b09c4c 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -10379,15 +10379,16 @@ def main(args): if len(str_exc)==0: str_exc = repr(exc) - exit_bot_error_strings = [u'Max retries exceeded' - , u'chrome not reachable' - , u'unable to connect to renderer' - , u'failed to check if window was closed' - , u'Failed to establish a new connection' - , u'Connection refused' - , u'disconnected' - , u'without establishing a connection' - , u'web view not found' + exit_bot_error_strings = ['Max retries exceeded' + , 'chrome not reachable' + , 'unable to connect to renderer' + , 'failed to check if window was closed' + , 'Failed to establish a new connection' + , 'Connection refused' + , 'disconnected' + , 'without establishing a connection' + , 'web view not found' + , 'invalid session id' ] for each_error_string in exit_bot_error_strings: if isinstance(str_exc, str):