mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Throw exception for invalid requested image instead of just returning nothing, so we can catch these in sentry.
This commit is contained in:
@@ -53,4 +53,4 @@ class ShedToolStatic(BaseUIController):
|
||||
trans.response.set_content_type(mime)
|
||||
return open(asset_path, 'rb')
|
||||
else:
|
||||
return None
|
||||
raise RequestParameterInvalidException()
|
||||
|
||||
Reference in New Issue
Block a user