Skip to content

Commit 9d44159

Browse files
author
Nina Kahr
committed
PA-757: WIP on create website CLI. by Sam, Nina
1 parent 0314667 commit 9d44159

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonanywhere_core/website.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def create(self, domain_name: str, command: str) -> dict:
3838
"webapp": {"command": command}
3939
}
4040
)
41+
if not response.ok:
42+
raise PythonAnywhereApiException(f"POST to create webapp via API failed, got {response}:{response.text}")
4143
return response.json()
4244

4345
def get(self, domain_name: str) -> dict:

0 commit comments

Comments
 (0)