mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Typo fix: messagge_is_html, closes #1118
This commit is contained in:
parent
dea3c508b3
commit
49b6297fb7
2 changed files with 4 additions and 4 deletions
|
|
@ -1154,7 +1154,7 @@ class DatasetteRouter:
|
||||||
status = exception.status
|
status = exception.status
|
||||||
info = exception.error_dict
|
info = exception.error_dict
|
||||||
message = exception.message
|
message = exception.message
|
||||||
if exception.messagge_is_html:
|
if exception.message_is_html:
|
||||||
message = Markup(message)
|
message = Markup(message)
|
||||||
title = exception.title
|
title = exception.title
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,13 @@ class DatasetteError(Exception):
|
||||||
error_dict=None,
|
error_dict=None,
|
||||||
status=500,
|
status=500,
|
||||||
template=None,
|
template=None,
|
||||||
messagge_is_html=False,
|
message_is_html=False,
|
||||||
):
|
):
|
||||||
self.message = message
|
self.message = message
|
||||||
self.title = title
|
self.title = title
|
||||||
self.error_dict = error_dict or {}
|
self.error_dict = error_dict or {}
|
||||||
self.status = status
|
self.status = status
|
||||||
self.messagge_is_html = messagge_is_html
|
self.message_is_html = message_is_html
|
||||||
|
|
||||||
|
|
||||||
class BaseView:
|
class BaseView:
|
||||||
|
|
@ -441,7 +441,7 @@ class DataView(BaseView):
|
||||||
""",
|
""",
|
||||||
title="SQL Interrupted",
|
title="SQL Interrupted",
|
||||||
status=400,
|
status=400,
|
||||||
messagge_is_html=True,
|
message_is_html=True,
|
||||||
)
|
)
|
||||||
except (sqlite3.OperationalError, InvalidSql) as e:
|
except (sqlite3.OperationalError, InvalidSql) as e:
|
||||||
raise DatasetteError(str(e), title="Invalid SQL", status=400)
|
raise DatasetteError(str(e), title="Invalid SQL", status=400)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue