File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -235,17 +235,20 @@ def parse_datasource(datasource, query_type):
235235
236236 :param datasource: datasource parameter
237237 :param string query_type: query type
238- :raise ValueError: if input is not string or list of strings
238+ :raise ValueError: if input is not string or list of strings or dict
239239 """
240240 if not (
241241 isinstance (datasource , six .string_types )
242242 or (
243243 isinstance (datasource , list )
244244 and all ([isinstance (x , six .string_types ) for x in datasource ])
245245 )
246+ or
247+ isinstance (datasource , dict )
246248 ):
247249 raise ValueError (
248- "Datasource definition not valid. Must be string or list of strings"
250+ "Datasource definition not valid. Must be string or "
251+ "dict or list of strings"
249252 )
250253 if isinstance (datasource , six .string_types ):
251254 return datasource
You can’t perform that action at this time.
0 commit comments