🖨️ Print own error message when a bad file name was entered

PHOTO EMBED

Mon Oct 24 2022 06:04:53 GMT+0000 (Coordinated Universal Time)

Saved by @L0uJ1rky45M #python

file_name = input('Enter the file name:  ')
  try:
      file_handler = open(file_name)
  except:
      print('File cannot be opened:', file_name)
      quit()
content_copyCOPY

To avoid the traceback