|
|
@ -104,7 +104,7 @@ def get_response(request_future, error_type, social_network):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
response = request_future.result()
|
|
|
|
response = request_future.result()
|
|
|
|
if response.status_code:
|
|
|
|
if response.status_code:
|
|
|
|
#status code exists in response object
|
|
|
|
# Status code exists in response object
|
|
|
|
error_context = None
|
|
|
|
error_context = None
|
|
|
|
except requests.exceptions.HTTPError as errh:
|
|
|
|
except requests.exceptions.HTTPError as errh:
|
|
|
|
error_context = "HTTP Error"
|
|
|
|
error_context = "HTTP Error"
|
|
|
|