Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/expfig/utils/dependencies.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import importlib

class BadModule:
def __init__(self, module):
self.module = module
Expand All @@ -18,7 +20,7 @@ def load_module(module):
elif module == 'pandas':
import pandas as m
else:
raise NameError(module)
m = importlib.import_module(module)
except ImportError:
return BadModule(module)

Expand Down
Loading