1
0

Avoid throwing error if nordnet_api_client is not present

This commit is contained in:
Jon Michael Aanes 2024-08-02 07:38:16 +02:00
parent de619e2548
commit 3eead4bd35
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -55,12 +55,20 @@ __all__ = [
'static',
]
import logging
from . import (
data,
defi_kraken,
defi_kucoin,
defi_partisia_blockchain,
investbank_nordnet,
static,
)
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')