Skip to content

Commit

Permalink
Fix Python 2 to 3 exception conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
arianepaola committed Jun 15, 2016
1 parent da02a92 commit 5a6f847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/meta/generator/generate.py
Expand Up @@ -43,7 +43,7 @@ def translateExamples(inputDir, outputDir, targetsDir, ctagsFile,
with open(translate_file) as tFile:
try:
targets.append(json.load(tFile))
except Exception, err:
except Exception as err:
print("Error translating file: %s\n%s" % (translate_file, err))

# Translate each example
Expand Down

0 comments on commit 5a6f847

Please sign in to comment.