Skip to content

Commit 3e269ec

Browse files
committed
fixes relogin bug
1 parent e860916 commit 3e269ec

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

roboflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def initialize_roboflow():
138138
)
139139

140140
if not os.path.isfile(conf_location):
141-
raise ("To use this method, you must first login - run roboflow.login()")
141+
raise RuntimeError("To use this method, you must first login - run roboflow.login()")
142142
else:
143143
if active_workspace == None:
144144
active_workspace = Roboflow().workspace()

roboflow/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def get_conditional_configuration_variable(key, default):
7575

7676
def load_roboflow_api_key():
7777
RF_WORKSPACE = get_conditional_configuration_variable("RF_WORKSPACE", default=None)
78+
RF_WORKSPACES = get_conditional_configuration_variable("workspaces", default={})
79+
7880
# DEFAULT_WORKSPACE = get_conditional_configuration_variable("default_workspace", default=None)
7981
if RF_WORKSPACE == None:
8082
RF_API_KEY = None

0 commit comments

Comments
 (0)