We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9af158 + 763714a commit 51e84d7Copy full SHA for 51e84d7
src/pyproject_hooks/_impl.py
@@ -53,8 +53,11 @@ def __init__(
53
# Preserving arg order for the sake of API backward compatibility.
54
self.backend_name = backend_name
55
self.backend_path = backend_path
56
- self.traceback = traceback
57
- super().__init__(message or "Error while importing backend")
+ self.traceback = traceback or ""
+ super().__init__(
58
+ f"{message or 'Error while importing backend'}"
59
+ + (f"\n\nTraceback:\n{self.traceback}" if self.traceback else "")
60
+ )
61
62
63
class HookMissing(Exception):
0 commit comments