Raised when the import statement has troubles trying to load a module. Also raised when the “from list” in from ... import has a name that cannot be found.
Raised when an error is detected that doesn’t fall in any of the other categories. The associated value is a string indicating what precisely went wrong.
ImportError
is the wrong exception to raise here:RuntimeError
seems much more appropriate:https://github.com/westerveltco/django-opfield/blob/41e713dee7053a52aeda6071ccf2ded334184c6e/src/django_opfield/conf.py#L54