dweet source code
This commit is contained in:
@@ -27,7 +27,7 @@ class DweetServer(object):
|
||||
|
||||
|
||||
def handle_response(response):
|
||||
if response.status_code != 200:
|
||||
raise ErrorCommunicatingWithServerException("Response not 200!")
|
||||
if response.status_code != 200 or response.status_code != 204:
|
||||
raise ErrorCommunicatingWithServerException("Response not 200 or 204!")
|
||||
else:
|
||||
return response.json()
|
||||
|
||||
Reference in New Issue
Block a user