Skip to content

Commit 565fa71

Browse files
Fix load error messages not having a stack trace (#2508)
1 parent e865e95 commit 565fa71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/src/server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,9 @@ async def install_deps(dependencies: list[api.Dependency]):
572572
import_errors: list[api.LoadErrorInfo] = []
573573
for e in load_errors:
574574
if not isinstance(e.error, ModuleNotFoundError):
575-
logger.warning(f"Failed to load {e.module} ({e.file}):")
576-
logger.warning(e.error)
575+
logger.warning(
576+
f"Failed to load {e.module} ({e.file}):", exc_info=e.error
577+
)
577578
else:
578579
import_errors.append(e)
579580

0 commit comments

Comments
 (0)