mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Use correct QueryInterrupted exception on row page, closes #1088
This commit is contained in:
parent
e8e0a6f284
commit
253f2d9a3c
1 changed files with 1 additions and 2 deletions
|
|
@ -19,7 +19,6 @@ from datasette.utils import (
|
||||||
path_with_added_args,
|
path_with_added_args,
|
||||||
path_with_removed_args,
|
path_with_removed_args,
|
||||||
path_with_replaced_args,
|
path_with_replaced_args,
|
||||||
sqlite3,
|
|
||||||
to_css_class,
|
to_css_class,
|
||||||
urlsafe_components,
|
urlsafe_components,
|
||||||
value_as_boolean,
|
value_as_boolean,
|
||||||
|
|
@ -1040,7 +1039,7 @@ class RowView(RowTableShared):
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
rows = list(await db.execute(sql, {"id": pk_values[0]}))
|
rows = list(await db.execute(sql, {"id": pk_values[0]}))
|
||||||
except sqlite3.OperationalError:
|
except QueryInterrupted:
|
||||||
# Almost certainly hit the timeout
|
# Almost certainly hit the timeout
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue