Merge pull request #16905 from mvdbeek/no_500_history

[23.1] Provide error message instead of internal server error
This commit is contained in:
Dannon
2023-10-24 08:20:19 -04:00
committed by GitHub
@@ -488,6 +488,10 @@ class HistoryController(BaseUIController, SharableMixin, UsesAnnotations, UsesIt
history_is_current = history_to_view == trans.history
else:
history_to_view = trans.history
if not history_to_view:
raise exceptions.RequestParameterMissingException(
"No 'id' parameter provided for history, and user does not have a current history."
)
user_is_owner = True
history_is_current = True