[clang] [libclang/python] Remove unused exception variable (PR #172516)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 08:35:32 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Thomas Applencourt (TApplencourt)
<details>
<summary>Changes</summary>
Remove unused CompilationDatabaseError variable (fixes #<!-- -->172374)
---
Full diff: https://github.com/llvm/llvm-project/pull/172516.diff
1 Files Affected:
- (modified) clang/bindings/python/clang/cindex.py (+1-1)
``````````diff
diff --git a/clang/bindings/python/clang/cindex.py b/clang/bindings/python/clang/cindex.py
index 5a5267f51d84e..1e17627249dda 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -3879,7 +3879,7 @@ def fromDirectory(buildDir):
os.fspath(buildDir), byref(errorCode)
)
)
- except CompilationDatabaseError as e:
+ except CompilationDatabaseError:
raise CompilationDatabaseError(
int(errorCode.value), "CompilationDatabase loading failed"
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/172516
More information about the cfe-commits
mailing list