Skip to content

Commit 804bcf4

Browse files
committed
clean code
1 parent db540d4 commit 804bcf4

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

scaleway/scaleway/instance/v1/custom_api.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def get_server_user_data(self, server_id: str, key: str, zone: Optional[Zone] =
107107
self.client,
108108
),
109109
)
110-
print("res from api: ", res.text)
111110
self._throw_on_error(res)
112111
return res.json()
113112

@@ -132,18 +131,6 @@ def set_server_user_data(self, server_id: str, key: str, content: StringIO, zone
132131
body=body,
133132
headers=headers,
134133
)
135-
try:
136-
response_text = res.text # Expect plain text
137-
except requests.exceptions.JSONDecodeError:
138-
print(f"Failed to decode JSON. Response content: {res.text}")
139-
response_text = None
140134

141135
self._throw_on_error(res)
142-
return response_text
143-
144-
145-
146-
def test_method(self):
147-
print("hello")
148-
149-
InstanceV1API.test_method = test_method
136+
return res.text

0 commit comments

Comments
 (0)