mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
check if parameter is not a string
This commit is contained in:
@@ -396,8 +396,8 @@ class LibraryDatasetsController(BaseAPIController, UsesVisualizationMixin, Libra
|
||||
path = kwd.get('path', None)
|
||||
if path is None:
|
||||
raise exceptions.RequestParameterMissingException('The required attribute path is missing.')
|
||||
if isinstance(path, int):
|
||||
raise exceptions.RequestParameterInvalidException('The required attribute path is Integer.')
|
||||
if not isinstance(path, str):
|
||||
raise exceptions.RequestParameterInvalidException('The required attribute path is not String.')
|
||||
|
||||
folder = self.folder_manager.get(trans, folder_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user