add new condition to exit bot.

master
Max 2023-06-07 15:55:23 +08:00 committed by GitHub
parent 8f236b9de2
commit 9cc8cc4d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -10379,15 +10379,16 @@ def main(args):
if len(str_exc)==0: if len(str_exc)==0:
str_exc = repr(exc) str_exc = repr(exc)
exit_bot_error_strings = [u'Max retries exceeded' exit_bot_error_strings = ['Max retries exceeded'
, u'chrome not reachable' , 'chrome not reachable'
, u'unable to connect to renderer' , 'unable to connect to renderer'
, u'failed to check if window was closed' , 'failed to check if window was closed'
, u'Failed to establish a new connection' , 'Failed to establish a new connection'
, u'Connection refused' , 'Connection refused'
, u'disconnected' , 'disconnected'
, u'without establishing a connection' , 'without establishing a connection'
, u'web view not found' , 'web view not found'
, 'invalid session id'
] ]
for each_error_string in exit_bot_error_strings: for each_error_string in exit_bot_error_strings:
if isinstance(str_exc, str): if isinstance(str_exc, str):