Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when adding nodes to existing database #100

Open
JoOkuma opened this issue May 7, 2024 · 0 comments
Open

Improve error message when adding nodes to existing database #100

JoOkuma opened this issue May 7, 2024 · 0 comments
Assignees

Comments

@JoOkuma
Copy link
Member

JoOkuma commented May 7, 2024

This should suggest to use the overwrite=True flag, right now it returns

sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: nodes.id
[SQL: INSERT INTO nodes (t, id, parent_id, hier_parent_id, t_node_id, t_hier_id, z, y, x, z_shift, y_shift, x_shift, area, selected, pickle, annotation, division) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[SQL parameters hidden due to hide_parameters=True]
(Background on this error at: https://sqlalche.me/e/14/gkpj)

not very useful

@JoOkuma JoOkuma self-assigned this Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant