Skip to content

Commit 790f3c4

Browse files
committed
use handle_bad_response in update_application_property
1 parent 2be55ec commit 790f3c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rsconnect/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,9 @@ def get_application(self, application_id):
10951095
return response
10961096

10971097
def update_application_property(self, application_id: int, property: str, value: str):
1098-
return self.put("/v1/applications/{}/properties/{}".format(application_id, property), body={"value": value})
1098+
response = self.put("/v1/applications/{}/properties/{}".format(application_id, property), body={"value": value})
1099+
self._server.handle_bad_response(response)
1100+
return response
10991101

11001102
def get_content(self, content_id):
11011103
response = self.get("/v1/content/{}".format(content_id))

0 commit comments

Comments
 (0)