source: use import error
uses the more broad ImportError instead of ModuleNotFoundError reasoning being if some submodule (the one I'm configuring currently is my.twitter.twint) doesn't have additional imports from another parser/DAL, but it still has a config block, the user would have to create a stub-config block in their config to use the all.py file
This commit is contained in:
parent
b9852f45cf
commit
e7aa328178
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ def import_source(
|
|||
try:
|
||||
res = factory_func(**kwargs)
|
||||
yield from res
|
||||
except ModuleNotFoundError:
|
||||
except ImportError:
|
||||
from . import core_config as CC
|
||||
suppressed_in_conf = False
|
||||
if module_name is not None and CC.config._is_module_active(module_name) is False:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue