Abort a request if the user is not found#95
Abort a request if the user is not found#95AstraLuma wants to merge 1 commit intorowanlupton:masterfrom
Conversation
|
Ooh, good point. I'm feeling torn right now about whether the find_user function should do the abort, or whether everything implementing find_user should I think that I want to stick with |
|
Well, this was a quick hack, and I can certainly see cases where you want to look up a user and handle it differently. |
|
I will say that some ORMs handle it by raising an exception (eg, Django's ORM raises an |
|
yeah i hear you! i think that an exception is probably the way to go? i'll mull it over some more |
This is probably totally the wrong thing to do. But it seems better than throwing 500's?