simonw / datasette-write

Datasette plugin providing a UI for executing SQL writes against the database
https://datasette.io/plugins/datasette-write
10 stars 2 forks source link

Use Forbidden exception, not custom 403 #1

Closed simonw closed 9 months ago

simonw commented 4 years ago

Should raise datasette.utils.asgi.Forbidden, not return a custom 403

https://github.com/simonw/datasette-write/blob/ddd2e2175ed60011225ce75562e9063ea56c5ba3/datasette_write/__init__.py#L5-L9

This will make it work with https://github.com/simonw/datasette/issues/812