Skip to content

Commit

Permalink
fix env file finding connection bug (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndamania00 authored Nov 1, 2024
1 parent 70a75d4 commit 003918a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions liminal/migrate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def read_local_env_file(
benchling_tenant == bc.tenant_name
or benchling_tenant == bc.tenant_alias
):
raise Exception(
f"tenant name {benchling_tenant} does not match tenant name {bc.tenant_name} or alias {bc.tenant_alias} in liminal/env.py."
)
continue
if not bc.api_client_id or not bc.api_client_secret:
raise Exception(
"api_client_id and api_client_secret must be provided in BenchlingConnection in liminal/env.py. This is necessary for the migration service."
Expand All @@ -54,7 +52,7 @@ def read_local_env_file(
f"CURRENT_REVISION_ID variable not found in liminal/env.py. Given variable name: {bc.current_revision_id_var_name}"
) from e
raise Exception(
"BenchlingConnection not found in liminal/env.py. Please update the env.py file with a correctly defined BenchlingConnection."
f"BenchlingConnection with tenant name or alias {benchling_tenant} not found in liminal/env.py. Please update the env.py file with a correctly defined BenchlingConnection."
)


Expand Down

0 comments on commit 003918a

Please sign in to comment.