mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-04-15 02:23:12 +00:00
Test ruff action
This commit is contained in:
parent
8626ac3623
commit
6a41bc037b
@ -31,9 +31,9 @@ app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
|
||||
|
||||
@app.exception_handler(ValidationError)
|
||||
async def validation_exception_handler(request, exc):
|
||||
return await request_validation_exception_handler(request, exc)
|
||||
return await request_validation_exception_handler(request, exc) # Test ruff action
|
||||
|
||||
|
||||
@app.exception_handler(404)
|
||||
async def custom_404_handler(_, __):
|
||||
return FileResponse(settings.STATIC_FOLDER / '404.jpg') #
|
||||
return FileResponse(settings.STATIC_FOLDER / '404.jpg')
|
||||
|
Loading…
x
Reference in New Issue
Block a user