From 5282b4b434495613637715459887a2c7da156ef8 Mon Sep 17 00:00:00 2001 From: piair Date: Sun, 19 Mar 2023 12:21:57 +0100 Subject: [PATCH] apparently, no --- V5.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/V5.py b/V5.py index 9dd014b..0bcb840 100755 --- a/V5.py +++ b/V5.py @@ -44,6 +44,9 @@ custom_sleep = CustomSleep def log_error(error, ldriver=driver, log=FULL_LOG): + global driver + if ldriver is None: + ldriver = driver if type(error) != str : error = format_error(error) print(f"\n\n\033[93m Erreur : {str(error)} \033[0m\n\n")