mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 17:26:32 +01:00
Don't raise but instead return HttpResponseBadRequest object
This commit is contained in:
parent
ced9e7f545
commit
1661fa6574
1 changed files with 1 additions and 1 deletions
|
|
@ -1113,7 +1113,7 @@ class HelpDetailView(HelpMixin, EvenniaDetailView):
|
|||
|
||||
# Check if this object was requested in a valid manner
|
||||
if not obj:
|
||||
raise HttpResponseBadRequest(
|
||||
return HttpResponseBadRequest(
|
||||
"No %(verbose_name)s found matching the query"
|
||||
% {"verbose_name": queryset.model._meta.verbose_name}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue