html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,issue,performed_via_github_app
https://github.com/simonw/datasette/issues/1950#issuecomment-1349864950,https://api.github.com/repos/simonw/datasette/issues/1950,1349864950,IC_kwDOBm6k_c5QdU32,9599,2022-12-13T22:11:15Z,2022-12-13T22:11:15Z,OWNER,"Most places I use that exception at the moment set their own non-500 status error:
```
datasette % rg DatasetteError
datasette/handle_exception.py
7:from .views.base import DatasetteError
33: elif isinstance(exception, DatasetteError):
datasette/filters.py
2:from datasette.views.base import DatasetteError
22: raise DatasetteError(""_where= is not allowed"", status=403)
141: raise DatasetteError(
datasette/views/table.py
34:from .base import BaseView, DataView, DatasetteError, ureg, _error
178: raise DatasetteError(
192: raise DatasetteError(
390: raise DatasetteError(""Cannot use _sort and _sort_desc at the same time"")
394: raise DatasetteError(f""Cannot sort table by {sort}"")
400: raise DatasetteError(f""Cannot sort table by {sort_desc}"")
datasette/views/base.py
39:class DatasetteError(Exception):
219: raise DatasetteError(str(e), title=""Invalid SQL"", status=400)
222: raise DatasetteError(str(e))
224: except DatasetteError:
382: raise DatasetteError(
402: raise DatasetteError(str(e), title=""Invalid SQL"", status=400)
405: raise DatasetteError(str(e))
407: except DatasetteError:
datasette/views/table2.py
28:from .base import DataView, DatasetteError, ureg
296: raise DatasetteError(
310: raise DatasetteError(
472: raise DatasetteError(""Cannot use _sort and _sort_desc at the same time"")
476: raise DatasetteError(f""Cannot sort table by {sort}"")
482: raise DatasetteError(f""Cannot sort table by {sort_desc}"")
datasette/views/database.py
31:from .base import BaseView, DatasetteError, DataView, _error
188: raise DatasetteError(""Invalid database"", status=404)
190: raise DatasetteError(""Cannot download in-memory databases"", status=404)
194: raise DatasetteError(""Cannot download database"", status=404)
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",1495241162,
https://github.com/simonw/datasette/issues/1950#issuecomment-1349855620,https://api.github.com/repos/simonw/datasette/issues/1950,1349855620,IC_kwDOBm6k_c5QdSmE,9599,2022-12-13T22:08:50Z,2022-12-13T22:08:50Z,OWNER,https://github.com/simonw/datasette/blob/d4b98d3924dec625a99236e65b1b169ff957381f/datasette/views/table.py#L392-L400,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",1495241162,