From 8aba9e2d54f469e8fedbef9dba3f789eb7efc02c Mon Sep 17 00:00:00 2001 From: Oleg Zharkov Date: Tue, 11 Aug 2020 16:53:47 +0200 Subject: [PATCH] check if parameter is not a string --- lib/galaxy/webapps/galaxy/api/library_datasets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)