Skip to content

Commit

Permalink
Workaround for #2353
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jun 12, 2024
1 parent 4e3e8a0 commit 47333e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasette/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ async def derive_named_parameters(db, sql):
try:
results = await db.execute(explain, {p: None for p in possible_params})
return [row["p4"].lstrip(":") for row in results if row["opcode"] == "Variable"]
except sqlite3.DatabaseError:
except (sqlite3.DatabaseError, AttributeError):
return possible_params


Expand Down

0 comments on commit 47333e4

Please sign in to comment.