This commit is contained in:
williamFalcon 2019-10-23 01:32:04 -07:00
commit f7dda5080b
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ try:
except ModuleNotFoundError:
pass
try:
from .comet_logger import CometLogger
# needed to prevent ImportError and duplicated logs.
environ["COMET_DISABLE_AUTO_LOGGING"] = "1"
from .comet_logger import CometLogger
except ModuleNotFoundError:
pass
del environ["COMET_DISABLE_AUTO_LOGGING"]