Skip to content

Commit

Permalink
BUG: specify encoding to fix load error
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov committed Jun 24, 2021
1 parent 8325c20 commit 7432749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpReview.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@ def loadMpReviewProcessedData(resourcesDir, updateProgressCallback=None):
for currentJSONFile in [f for f in files if f.endswith('.json')]:
metaFile = os.path.join(root, currentJSONFile)
try:
bidsJSON = json.load(open(metaFile))
bidsJSON = json.load(open(metaFile, encoding='utf-8'))
seriesNumber = str(bidsJSON["SeriesNumber"])
seriesDescription = mpReviewLogic.normalizeSeriesDescription(bidsJSON["SeriesDescription"])
except Exception as exc:
Expand Down

0 comments on commit 7432749

Please sign in to comment.