try except for init py to ignore humbug import

pull/373/head
kompotkot 2021-11-09 10:22:13 +00:00
rodzic b4809ce825
commit e80c211748
3 zmienionych plików z 13 dodań i 7 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
[settings]
profile = black
multi_line_output = 3

Wyświetl plik

@ -1,7 +1,11 @@
from .reporter import reporter
from .version import MOONCRAWL_VERSION
try:
from .reporter import reporter
from .version import MOONCRAWL_VERSION
# Reporting
reporter.tags.append(f"version:{MOONCRAWL_VERSION}")
reporter.system_report(publish=True)
reporter.setup_excepthook(publish=True)
# Reporting
reporter.tags.append(f"version:{MOONCRAWL_VERSION}")
reporter.system_report(publish=True)
reporter.setup_excepthook(publish=True)
except:
# Pass it to be able import MOONCRAWL_VERSION in setup.py with pip
pass

Wyświetl plik

@ -2,7 +2,6 @@ from setuptools import find_packages, setup
from mooncrawl.version import MOONCRAWL_VERSION
long_description = ""
with open("README.md") as ifp:
long_description = ifp.read()