bon bah je sais pas me servir de finally

This commit is contained in:
piair 2023-02-26 12:50:23 +01:00
parent 87b47e97fd
commit bad8be5d1f
1 changed files with 4 additions and 1 deletions

5
V5.py
View File

@ -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()