Fix #618 Change papi to api (#619)

* Change papi to api

* Added try catch for old/new api reference
This commit is contained in:
Jay Morgan
2019-12-10 16:24:21 -08:00
committed by William Falcon
parent e2ee4ddbdb
commit d1633aac11
+5 -1
View File
@@ -52,7 +52,11 @@ from logging import getLogger
try:
from comet_ml import Experiment as CometExperiment
from comet_ml import OfflineExperiment as CometOfflineExperiment
from comet_ml.papi import API
try:
from comet_ml.api import API
except ImportError:
# For more information, see: https://www.comet.ml/docs/python-sdk/releases/#release-300
from comet_ml.papi import API
except ImportError:
raise ImportError('Missing comet_ml package.')