Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comet fix #481

Merged
merged 8 commits into from
Nov 12, 2019
Prev Previous commit
Switching to MisconfigurationException
rwesterman committed Nov 11, 2019
commit 18c706d718fbfaca3f001a44d2b00d31722d9c4f
3 changes: 2 additions & 1 deletion pytorch_lightning/logging/comet_logger.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
from torch import is_tensor

from .base import LightningLoggerBase, rank_zero_only
from ..utilities.debugging import MisconfigurationException

logger = getLogger(__name__)

@@ -46,7 +47,7 @@ def __init__(self, api_key=None, save_dir=None, workspace=None,
self.save_dir = save_dir
else:
# If neither api_key nor save_dir are passed as arguments, raise an exception
raise Exception("CometLogger requires either api_key or save_dir during initialization.")
raise MisconfigurationException("CometLogger requires either api_key or save_dir during initialization.")

logger.info(f"CometLogger will be initialized in {self.mode} mode")