Skip to content

Commit d57cb58

Browse files
committed
Fixed import error handling in busyserve
Was raising from error instead from None.
1 parent 3419211 commit d57cb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/busylight/busyserve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
raise ImportError(
1212
"The package `uvicorn` is missing, unable to serve the busylight API. "
1313
"Install with webapi extras: pip install busylight-for-humans[webapi]"
14-
) from error
14+
) from None
1515

1616
from busylight.api.logging_config import get_uvicorn_log_config
1717

0 commit comments

Comments
 (0)