uninstalled wandb raises AttributeError

This commit is contained in:
Lysandre
2020-06-09 18:50:56 -04:00
parent 6e603cb789
commit 13aa174112
+1 -1
View File
@@ -69,7 +69,7 @@ try:
wandb.termwarn("W&B installed but not logged in. Run `wandb login` or set the WANDB_API_KEY env variable.")
else:
_has_wandb = False if os.getenv("WANDB_DISABLED") else True
except ImportError:
except (ImportError, AttributeError):
_has_wandb = False