Skip to content

Commit

Permalink
Merge pull request #138 from pkalever/fix_invalid_syntax
Browse files Browse the repository at this point in the history
fix compiler error: in Python 3.x, using "as" is required to assign an exception to a variable.
  • Loading branch information
maurizio-lombardi authored Sep 18, 2018
2 parents 67eb160 + c63d54d commit aff9e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtslib/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _get_saveconf(self, so_path, save_file):
try:
with open(save_file, "r") as f:
saveconf = json.loads(f.read())
except IOError, e:
except IOError as e:
if e.errno == errno.ENOENT:
saveconf = {'storage_objects': [], 'targets': []}
else:
Expand Down

0 comments on commit aff9e13

Please sign in to comment.