Skip to content

Commit

Permalink
Update comtypes/errorinfo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd authored Nov 20, 2024
1 parent 0073f81 commit df9e5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comtypes/errorinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def ReportException(
tb = tb.tb_next
line = tb.tb_frame.f_lineno
name = tb.tb_frame.f_globals["__name__"]
text = f"{typ}: {value} ({name}, line {line})"
text = f"{typ}: {value} ({name}, line {line:d})"
else:
text = f"{typ}: {value}"
return ReportError(
Expand Down

0 comments on commit df9e5b0

Please sign in to comment.