add new condition to exit bot.
parent
8f236b9de2
commit
9cc8cc4d8c
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue