Skip to content

Commit aa189ed

Browse files
Yannick Brehond0k
authored andcommitted
Fix compatibility with python3 of clang-include-fixer.py
clang-include-fixer was recently updated to be python3-compatible. However, an exception handling clause was improperly using the deprecated `message` property of Exception classes, so the code was not yet entirely python3-compatible. Differential Revision: https://reviews.llvm.org/D70902
1 parent 7483eb6 commit aa189ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-include-fixer/tool/clang-include-fixer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def main():
211211
InsertHeaderToVimBuffer(include_fixer_context, text)
212212
print("Added #include {0} for {1}.".format(selected, symbol))
213213
except Exception as error:
214-
print(error.message, file=sys.stderr)
214+
print(error, file=sys.stderr)
215215
return
216216

217217

0 commit comments

Comments
 (0)