Skip to content

Bug: New introduced DatabaseException not handled in BaseCRUDView #2399

@ThomasP0815

Description

@ThomasP0815

Current behaviour:

  • If a DatabaseException is thrown, the UI shows an empty banner which has the same color like the background.

The DatabaseException should be catched like in api/__init__.py.
The message level should be set to "warning" like it was in 4.X.

try:
   ...
except DatabaseException as dex:
    flash(str(dex.__cause__), "warning")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions