Avoid throwing error if nordnet_api_client is not present
This commit is contained in:
parent
de619e2548
commit
3eead4bd35
|
@ -55,12 +55,20 @@ __all__ = [
|
||||||
'static',
|
'static',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
from . import (
|
from . import (
|
||||||
data,
|
data,
|
||||||
defi_kraken,
|
defi_kraken,
|
||||||
defi_kucoin,
|
defi_kucoin,
|
||||||
defi_partisia_blockchain,
|
defi_partisia_blockchain,
|
||||||
investbank_nordnet,
|
|
||||||
static,
|
static,
|
||||||
)
|
)
|
||||||
from ._version import __version__
|
from ._version import __version__
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
try:
|
||||||
|
from . import investbank_nordnet
|
||||||
|
except ImportError:
|
||||||
|
logger.exception('Could not import %s. Are module requirements installed?', 'fin_depo.investbank_nordnet')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user