Skip to content

Commit

Permalink
fix(py27): uncaught exception in python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Aug 2, 2019
1 parent 7d92126 commit 88b6fc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions nipype/pipeline/engine/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ def load_resultfile(results_file):
"""
aggregate = True
results_file = Path(results_file)
path = '%s' % results_file.parents

result = None
attribute_error = False
if results_file.exists():
Expand Down
2 changes: 1 addition & 1 deletion nipype/utils/filemanip.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def loadpkl(infile, versioning=False):
try: # Look if pkl file contains version file
pkl_metadata_line = pkl_file.readline()
pkl_metadata = json.loads(pkl_metadata_line)
except UnicodeDecodeError:
except (UnicodeDecodeError, json.JSONDecodeError):
pass
finally:
# Could not get version info
Expand Down

0 comments on commit 88b6fc0

Please sign in to comment.