Skip to content

Commit f13d400

Browse files
authored
fix: current_workspace.database_url (#375)
1 parent c517252 commit f13d400

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openhexa/sdk/workspaces/current_workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def database_url(self):
187187
try:
188188
# First try the environment variable. In case we're inside a pipeline,
189189
# we add some extra parameters to the URL.
190-
return os.environ.get("WORKSPACE_DATABASE_URL")
190+
return os.environ["WORKSPACE_DATABASE_URL"]
191191
except KeyError:
192192
return (
193193
f"postgresql://{self.database_username}:{self.database_password}"

0 commit comments

Comments
 (0)