Skip to content

Commit

Permalink
fix no project in config context error
Browse files Browse the repository at this point in the history
  • Loading branch information
JungleCatSW committed Apr 10, 2024
1 parent bf72d33 commit 1793d18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion helpers/cudo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def get_api_key():
def get_project_id():
key_config, context_config, error = cudo.AuthConfig.load_config(home + '/.config/cudo/cudo.yml', "")
if not error:
return context_config['project'], None
if 'project' in context_config:
return context_config['project'], None
else:
return None, Exception("No project set in configuration")
else:
return None, error

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "cudo-compute"
version = "0.1.8"
version = "0.1.9"
authors = [
{ name = "Cudo Ventures", email = "[email protected]" },
]
Expand Down

0 comments on commit 1793d18

Please sign in to comment.