Created
August 20, 2020 15:39
-
-
Save switowski/be7b272abb2d15c597f2eeeeca7a0a1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
with open("path/to/file.txt", "r") as input_file: | |
return input_file.read() | |
except IOError: | |
# Handle the error or just ignore it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment