Skip to content

Commit

Permalink
set org
Browse files Browse the repository at this point in the history
  • Loading branch information
zainhoda committed Jul 7, 2023
1 parent 23c22d3 commit 97932c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/vanna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ def set_org(org: str) -> None:

if create.lower() == 'y':
db_type = input("What type of database would you like to use? (Snowflake, BigQuery, Postgres, etc.): ")
__org = 'demo-sales'
if create_org(org=org, db_type=db_type):
__org = org
else:
__org = None
raise Exception("Failed to create organization")
else:
__org = org
Expand Down

0 comments on commit 97932c5

Please sign in to comment.