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:
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):