fixed output message

pull/86/head
Yhtyyar Sahatov 2022-08-04 15:35:55 +03:00
rodzic f0656f3032
commit edaae6e65f
3 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -15,9 +15,9 @@ try:
)
except ImportError:
print("this feature requires moonstreamdb which is not installed")
print("to enable, run: `pip install -e[moonstream]`")
print("to enable, run: `pip install moonworm[moonstream]`")
raise ImportError(
"moonstreamdb not installed, to install, run: `pip install -e[moonstream]`"
"moonstreamdb not installed, to install, run: `pip install moonworm[moonstream]`"
)
from sqlalchemy.orm import Session

Wyświetl plik

@ -15,11 +15,12 @@ try:
)
except ImportError:
print("this feature requires moonstreamdb which is not installed")
print("to enable, run: `pip install -e[moonstream]`")
print("to enable, run: `pip install moonworm[moonstream]`")
raise ImportError(
"moonstreamdb not installed, to install, run: `pip install -e[moonstream]`"
"moonstreamdb not installed, to install, run: `pip install moonworm[moonstream]`"
)
from .utils import Network
MODELS: Dict[Network, Dict[str, Base]] = {

Wyświetl plik

@ -21,7 +21,7 @@ from web3.middleware import geth_poa_middleware
from moonworm.crawler.moonstream_ethereum_state_provider import (
MoonstreamEthereumStateProvider,
)
from moonworm.crawler.networks import Network
from moonworm.crawler.utils import Network
from .contracts import CU, ERC721
from .crawler.ethereum_state_provider import EthereumStateProvider