diff --git a/lib/galaxy/webapps/galaxy/api/library_datasets.py b/lib/galaxy/webapps/galaxy/api/library_datasets.py index 5ba4c6dcfc1..35c5d45f715 100644 --- a/lib/galaxy/webapps/galaxy/api/library_datasets.py +++ b/lib/galaxy/webapps/galaxy/api/library_datasets.py @@ -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)