We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c15e9 commit 6c48f31Copy full SHA for 6c48f31
roboflow/__init__.py
@@ -114,6 +114,9 @@ def login(workspace=None, force=False):
114
115
if r_login.status_code == 200:
116
r_login = r_login.json()
117
+ if r_login is None:
118
+ raise ValueError("Invalid API key. "
119
+ "Please check your API key and try again.")
120
121
# make config directory if it doesn't exist
122
if not os.path.exists(os.path.dirname(conf_location)):
0 commit comments