Version 0.4.0
All checks were successful
Run linters on applied template / Python 3.13 lint and build (push) Successful in 1m40s
All checks were successful
Run linters on applied template / Python 3.13 lint and build (push) Successful in 1m40s
Changes: - put ObservabilityMiddleware before ExceptionHandlerMiddleware to avoid repetative code - add application startup and last metrics update metrics along with CPU usage metric and threads count - move host and port to new uvicorn section at config along with new reload and forwarded_allow_ips - add request_id and remove trace_id/span_id generation if tracing is disabled - move logging logic from utils to observability - pass trace_id/span_id in HEX form
This commit is contained in:
7
{{project_slug}}/exceptions/auth.py.jinja
Normal file
7
{{project_slug}}/exceptions/auth.py.jinja
Normal file
@@ -0,0 +1,7 @@
|
||||
"""Authentication exceptions are located here."""
|
||||
|
||||
from {{project_slug}}.exceptions.base import {{ProjectName}}Error
|
||||
|
||||
|
||||
class NotAuthorizedError({{ProjectName}}Error):
|
||||
"""Exception to raise when user token is not set, but is required."""
|
||||
Reference in New Issue
Block a user