peterschutt / sqladmin-litestar-plugin

Litestar plugin for the SQLAdmin library
MIT License
18 stars 0 forks source link

fix: catch errors from mounted app #7

Closed peterschutt closed 6 months ago

peterschutt commented 6 months ago

The mounted application will start a response if an exception is raised from within, and then re-raise.

If the re-raised exception is allowed to propagate, a new response will be started by the litestar handler, causing an error.

This PR catches any exception raised from within the mounted application and logs it.