Skip to content

Commit

Permalink
Fix Py3 issue with .message on exception
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Jun 18, 2018
1 parent 5145ee0 commit 95b1c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebench/model/run_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _report_format_issue_and_exit(self, cmdline, err):

# figure out which format misses a conversion type
msg += DETAIL_INDENT + ("The command line configured is: %s" % cmdline)
msg += DETAIL_INDENT + ("Error: %s" % err.message)
msg += DETAIL_INDENT + ("Error: %s" % err)
without_conversion_type = re.findall(
r"%\(.*?\)(?![diouxXeEfFgGcrs%])", cmdline)
if without_conversion_type:
Expand Down

0 comments on commit 95b1c60

Please sign in to comment.