Commit b5cd5f6d authored by Łukasz Nowak's avatar Łukasz Nowak

recipe/readline: Support modern python

parent 95f930f8
......@@ -46,7 +46,7 @@ class Recipe(object):
with open(storage_path) as f:
readline = f.readline()
except IOError, e:
except IOError as e:
if e.errno != errno.ENOENT:
readline = None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment