From 85d0a09f4767bb1140a19092b3163a36884eec96 Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Thu, 17 Dec 2020 09:52:03 -0500 Subject: [PATCH] Use isinstance() instead of type() Co-authored-by: Nicola Soranzo --- lib/galaxy/config/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/config/__init__.py b/lib/galaxy/config/__init__.py index 7e4d06cfe07..ce7f92a9a99 100644 --- a/lib/galaxy/config/__init__.py +++ b/lib/galaxy/config/__init__.py @@ -275,7 +275,7 @@ class BaseAppConfiguration: # check for `not None` explicitly (value can be falsy) if value is not None and datatype in type_converters: # convert value or each item in value to type `datatype` - if type(value) is list: + if isinstance(value, list): return [type_converters[datatype](item) for item in value] else: return type_converters[datatype](value)