From bad8be5d1f796f6d2a458e9b0cf46d576f6144ac Mon Sep 17 00:00:00 2001 From: piair Date: Sun, 26 Feb 2023 12:50:23 +0100 Subject: [PATCH] bon bah je sais pas me servir de finally --- V5.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/V5.py b/V5.py index 8add659..158f3c0 100755 --- a/V5.py +++ b/V5.py @@ -1051,10 +1051,13 @@ else: except KeyboardInterrupt: print("canceled. Closing driver and display.") + driver.quit() + display.stop() except Exception as e: print(f"error not catched. exiting. {e}") - finally : driver.quit() display.stop() + + display.stop() \ No newline at end of file