try: f = open("_no_file.txt", "r") except: print("File not found")