Skip to content

Commit

Permalink
This is gonna break
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique committed Jan 25, 2024
1 parent 63fca1f commit fc12333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main/views/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def error():
except (sqlalchemy.exc.StatementError, sqlalchemy.exc.IntegrityError) as e:
db.session.rollback()
flash("The corpus cannot be registered. Check your data", category="error")
flash(str(e.orig).lower())
if db.session.get_bind().dialect.name == "postgresql":
unique_constraint = 'duplicate key value violates unique constraint "corpus_name_key"'
else:
Expand Down

0 comments on commit fc12333

Please sign in to comment.