[GH-ISSUE #36] AttributeError: Invalid query produces an exception #23

Closed
opened 2026-02-26 01:32:55 +03:00 by kerem · 0 comments
Owner

Originally created by @hroncok on GitHub (Apr 29, 2016).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/36

Consider a following query:

 GET /resource/?day=6

If the column day exists, everything goes fine.
But if I try with non-existent column:

GET /resource/?f=6
AttributeError: type object 'Resource' has no attribute 'f'

It blows an exception to the client.

Originally created by @hroncok on GitHub (Apr 29, 2016). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/36 Consider a following query: ``` GET /resource/?day=6 ``` If the column day exists, everything goes fine. But if I try with non-existent column: ``` GET /resource/?f=6 AttributeError: type object 'Resource' has no attribute 'f' ``` It blows an exception to the client.
kerem closed this issue 2026-02-26 01:32:55 +03:00
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
starred/sandman2-jeffknupp#23
No description provided.