Exception du fichier ouvert Python
try:
with open("path\to\file", "r"):
...
except FileNotFoundError:
print("file does not exist :(")
floating monkey
try:
with open("path\to\file", "r"):
...
except FileNotFoundError:
print("file does not exist :(")