Skip to content

Commit 517154d

Browse files
author
alexquali
committed
Fixed issue with incorrect response processing
1 parent bbd6fdc commit 517154d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server_tech/handlers/rest_api_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def inner(*args, **kwargs):
149149
while attempt < retries:
150150
try:
151151
response = decorated(*args, **kwargs)
152-
if response:
152+
if response.text:
153153
return response.json()
154154
else:
155155
return response

0 commit comments

Comments
 (0)