bon bah je sais pas me servir de finally
This commit is contained in:
parent
87b47e97fd
commit
bad8be5d1f
5
V5.py
5
V5.py
|
@ -1051,10 +1051,13 @@ else:
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("canceled. Closing driver and display.")
|
print("canceled. Closing driver and display.")
|
||||||
|
driver.quit()
|
||||||
|
display.stop()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"error not catched. exiting. {e}")
|
print(f"error not catched. exiting. {e}")
|
||||||
finally :
|
|
||||||
driver.quit()
|
driver.quit()
|
||||||
display.stop()
|
display.stop()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
display.stop()
|
display.stop()
|
Loading…
Reference in New Issue