From 6ed152d9763a076fb87e3e36df0a19d95cfd0f79 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 20 Feb 2020 17:50:46 -0500 Subject: [PATCH] Throw exception for invalid requested image instead of just returning nothing, so we can catch these in sentry. --- lib/galaxy/webapps/galaxy/controllers/shed_tool_static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/shed_tool_static.py b/lib/galaxy/webapps/galaxy/controllers/shed_tool_static.py index bcc722f81db..042e8184f9c 100644 --- a/lib/galaxy/webapps/galaxy/controllers/shed_tool_static.py +++ b/lib/galaxy/webapps/galaxy/controllers/shed_tool_static.py @@ -53,4 +53,4 @@ class ShedToolStatic(BaseUIController): trans.response.set_content_type(mime) return open(asset_path, 'rb') else: - return None + raise RequestParameterInvalidException()