Skip to content

Commit

Permalink
ldgen: catch exception with python3 compatible style
Browse files Browse the repository at this point in the history
Closes #2720
  • Loading branch information
renzbagaporo committed Nov 22, 2018
1 parent 56ed588 commit 8eeddd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/ldgen/ldgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def main():
script_model.fill(mapping_rules, sdkconfig)

script_model.write(output_file)

except Exception, e:
except Exception as e:
print("linker script generation failed for %s\nERROR: %s" % (input_file.name, e.message))
# Delete the file so the entire build will fail; and not use an outdated script.
os.remove(output_file.name)
Expand Down

0 comments on commit 8eeddd2

Please sign in to comment.