mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 22:06:30 +01:00
Don't raise but instead return HttpResponseBadRequest object
This commit is contained in:
parent
c7005cf5d6
commit
a623fa0ee3
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