Skip to content

Commit

Permalink
Fix load error messages not having a stack trace (#2508)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Jan 24, 2024
1 parent e865e95 commit 565fa71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,9 @@ async def install_deps(dependencies: list[api.Dependency]):
import_errors: list[api.LoadErrorInfo] = []
for e in load_errors:
if not isinstance(e.error, ModuleNotFoundError):
logger.warning(f"Failed to load {e.module} ({e.file}):")
logger.warning(e.error)
logger.warning(
f"Failed to load {e.module} ({e.file}):", exc_info=e.error
)
else:
import_errors.append(e)

Expand Down

0 comments on commit 565fa71

Please sign in to comment.