diff --git a/patch-tracking/hello.py b/patch-tracking/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..dfebb097c861b022f6a0d910175864869334eed9 --- /dev/null +++ b/patch-tracking/hello.py @@ -0,0 +1,13 @@ +""" hello """ + +try: + f = open('myfile.txt') + s = f.readline() + i = int(s.strip()) +except OSError as err: + print("OS error: {0}".format(err)) +except ValueError: + print("Could not convert data to an integer.") +except Exception as err: + print("Unexpected error: %v", err) + raise err