Skip to content

Commit

Permalink
Merge pull request #16905 from mvdbeek/no_500_history
Browse files Browse the repository at this point in the history
[23.1] Provide error message instead of internal server error
  • Loading branch information
dannon authored Oct 24, 2023
2 parents 7d9c230 + 4246957 commit 575e05a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/webapps/galaxy/controllers/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ def view(self, trans, id=None, show_deleted=False, show_hidden=False, use_panels
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

Expand Down

0 comments on commit 575e05a

Please sign in to comment.