fixed a rare error occuring when the cookie creation isn't successful

This commit is contained in:
piair 2023-05-05 11:56:26 +02:00
parent 5ef8d8b7ca
commit 2ca2779ec9
2 changed files with 4 additions and 1 deletions

3
V5.py
View File

@ -406,6 +406,9 @@ def cookie_login(ldriver):
except FileNotFoundError : except FileNotFoundError :
printf("No cookies file Found.") printf("No cookies file Found.")
return(False) return(False)
except Exception as e:
log_error(f"error performing cookies login. Trying with password instead. {str(e)}", driver)
return(False)
try : try :
ldriver.refresh() ldriver.refresh()
except Exception as e: except Exception as e:

View File

@ -1 +1 @@
v5.10.3 v5.10.4