From d14e0efad964bff63d5887836821a5b6234f3860 Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 18 Mar 2023 19:43:54 +0100 Subject: [PATCH] fix ? --- V5.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/V5.py b/V5.py index 77acd76..6f1d8a8 100755 --- a/V5.py +++ b/V5.py @@ -44,6 +44,8 @@ custom_sleep = CustomSleep def log_error(error, driver=driver, log=FULL_LOG): + if driver is None: + global driver if type(error) != str : error = format_error(error) print(f"\n\n\033[93m Erreur : {str(error)} \033[0m\n\n")