From 424695763b4e7a6d2c02810ea25528fc7ce09e20 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 24 Oct 2023 11:02:48 +0200 Subject: [PATCH] Provide error message instead of internal server error --- lib/galaxy/webapps/galaxy/controllers/history.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/galaxy/webapps/galaxy/controllers/history.py b/lib/galaxy/webapps/galaxy/controllers/history.py index 3f16bc0ecc94..e2246c28c158 100644 --- a/lib/galaxy/webapps/galaxy/controllers/history.py +++ b/lib/galaxy/webapps/galaxy/controllers/history.py @@ -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