Skip to content

Commit 233dd92

Browse files
committed
default to empty builder
1 parent 17f81e5 commit 233dd92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dotscience/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ def _initiate_build(self, model_id):
679679
the_exc = None
680680
while attempt < 120:
681681
attempt += 1
682-
try:
683-
resp = requests.post(self._hostname+f"/v2/models/{model_id}/builds", auth=self._auth, json={"builder": os.getenv(ENV_DOTSCIENCE_BUILDER)})
682+
try:
683+
resp = requests.post(self._hostname+f"/v2/models/{model_id}/builds", auth=self._auth, json={"builder": os.getenv(ENV_DOTSCIENCE_BUILDER, default='')})
684684
if resp.status_code != 201:
685685
raise Exception(f"Error {resp.status_code} on POST to /v2/models/{model_id}/builds: {resp.content}")
686686
build = resp.json()

0 commit comments

Comments
 (0)