Exceção de arquivo aberto 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 :(")