Compensation index error #451

Closed
opened 2024-12-02 15:42:54 +01:00 by mpeltriaux · 2 comments
Owner

Status quo

An error occured:


Traceback (most recent call last):
  ...
  File "/konova/compensation/tables/compensation.py", line 90, in render_id
    "has_revocations": record.intervention.legal.revocations.exists()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /compensation/
Exception Value: 'NoneType' object has no attribute 'legal'
Raised during: compensation.views.compensation.compensation.index_view

This can only occur if there would be a compensation without an intervention - which should not be possible. Further investigation needed.

# Status quo An error occured: ``` Traceback (most recent call last): ... File "/konova/compensation/tables/compensation.py", line 90, in render_id "has_revocations": record.intervention.legal.revocations.exists() ^^^^^^^^^^^^^^^^^^^^^^^^^ Exception Type: AttributeError at /compensation/ Exception Value: 'NoneType' object has no attribute 'legal' Raised during: compensation.views.compensation.compensation.index_view ``` This can only occur if there would be a compensation without an intervention - which should not be possible. Further investigation needed.
mpeltriaux added the
bug
label 2024-12-02 15:42:58 +01:00
mpeltriaux self-assigned this 2024-12-02 15:42:58 +01:00
Author
Owner

There are indeed 93 entries, which seem to have been migrated from predecessor KSP into Konova, which seem to be broken entries:

Not only do they lack an intervention but any other information as well. It seems these entries are basically empty, besides from the identifier. LanisZ will be informed on how to handle these entries.

There are indeed 93 entries, which seem to have been migrated from predecessor KSP into Konova, which seem to be broken entries: Not only do they lack an intervention but any other information as well. It seems these entries are basically empty, besides from the identifier. LanisZ will be informed on how to handle these entries.
Author
Owner

Entries have been removed from database.

Entries have been removed from database.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IT-Naturschutz/konova#451
No description provided.