Skip to content

Commit

Permalink
add sanity check to avoid setting an empty project
Browse files Browse the repository at this point in the history
  • Loading branch information
gena committed Nov 8, 2024
1 parent a4613df commit 2433ba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ee_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def ee_initialize_with_project(project, force=False):
if not ok:
return # no project is configured and cancelled, you're on your own

# sanity check
if len(project) == 0:
return

ee.Initialize(project=project)
save_project_to_config(project)

Expand Down

0 comments on commit 2433ba7

Please sign in to comment.