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 11, 2024
1 parent 7437d40 commit 2b6bfdd
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 @@ -1146,7 +1146,7 @@ async def derive_named_parameters(db: "Database", sql: str) -> List[str]:
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 2b6bfdd

Please sign in to comment.