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