mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 12:04:09 +02:00
Handle different SQLite version error messages
Refs https://github.com/simonw/sqlite-utils/pull/653#issuecomment-2864967364
This commit is contained in:
parent
fa6ae2b332
commit
79913af28a
2 changed files with 5 additions and 5 deletions
|
|
@ -1098,7 +1098,9 @@ def insert_upsert_implementation(
|
|||
if (
|
||||
isinstance(e, OperationalError)
|
||||
and e.args
|
||||
and "has no column named" in e.args[0]
|
||||
and (
|
||||
"has no column named" in e.args[0] or "no such column" in e.args[0]
|
||||
)
|
||||
):
|
||||
raise click.ClickException(
|
||||
"{}\n\nTry using --alter to add additional columns".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue