Improve error handling in object urls #1434

Open
opened 2025-12-07 14:57:00 +01:00 by leuckeju · 0 comments
Member

When accessing /o/core/nonexistingmodel/5, the error should be:
LookupError: App 'core' doesn't have a 'nonexistingmodel' model.

Instead, for some unknown reason, the model resolution fails silently, causing the API view to fail at a later point:
'Request' object has no attribute '_aleksis_object'.
This error message does help exactly nobody.

When accessing `/o/core/nonexistingmodel/5`, the error should be: `LookupError: App 'core' doesn't have a 'nonexistingmodel' model.` Instead, for some unknown reason, the model resolution fails silently, causing the API view to fail at a later point: `'Request' object has no attribute '_aleksis_object'`. This error message does help exactly nobody.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
aleksis/AlekSIS-Core#1434
No description provided.