Python Open File Exception

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