From 89d762f39ab1c12cf0cc4f7c69a86448b151413b Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 8 Jul 2025 12:14:10 -0500 Subject: [PATCH] bug fixes: conditional imports --- transport/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/__init__.py b/transport/__init__.py index 583b9d8..6937189 100644 --- a/transport/__init__.py +++ b/transport/__init__.py @@ -55,7 +55,7 @@ def init(): global PROVIDERS for _module in [cloud,sql,nosql,other,warehouse] : for _provider_name in dir(_module) : - if _provider_name.startswith('__') or _provider_name == 'common': + if _provider_name.startswith('__') or _provider_name == 'common' or type(_module) in [None,str,dict]: continue PROVIDERS[_provider_name] = {'module':getattr(_module,_provider_name),'type':_module.__name__} #