Skip to content

Commit aac400d

Browse files
authored
Merge pull request #289 from roboflow/api_key_precedence
remove loading api key from env variable when initializing api key
2 parents e135c40 + 1d35d37 commit aac400d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

roboflow/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from roboflow.models import CLIPModel, GazeModel # noqa: F401
1616
from roboflow.util.general import write_line
1717

18-
__version__ = "1.1.35"
18+
__version__ = "1.1.36"
1919

2020

2121
def check_key(api_key, model, notebook, num_retries=0):
@@ -239,8 +239,7 @@ def workspace(self, the_workspace=None):
239239
the_workspace = self.current_workspace
240240

241241
if self.api_key: # Check if api_key was passed during __init__
242-
workspace_api_key = load_roboflow_api_key(the_workspace)
243-
api_key = workspace_api_key or self.api_key
242+
api_key = self.api_key
244243
list_projects = rfapi.get_workspace(api_key, the_workspace)
245244
return Workspace(list_projects, api_key, the_workspace, self.model_format)
246245

0 commit comments

Comments
 (0)