Skip to content

Commit

Permalink
Trying to handle old SSL library errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelWaldvogel committed Jun 7, 2017
1 parent 6a200cd commit fdf9d86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion external_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def send_request(data):
logging.warn(err)
return False
except requests.exceptions.RequestException as err:
logging.warn('An error occured during the request: %s' % err)
try:
logging.warn('An error occured during the request: %s' % err)
except TypeError as err:
logging.warn('An unknown error occured duringg the request, probably an SSL error. Try updating your "requests" and "urllib" libraries.")

This comment has been minimized.

Copy link
@Marcool04

Marcool04 Jun 8, 2017

Syntax error: line 46, the opening quote is single, but the closing is double.

logging.warn('An unknown error occured duringg the request, probably an SSL error. Try updating your "requests" and "urllib" libraries.")

Should be:

logging.warn('An unknown error occured duringg the request, probably an SSL error. Try updating your "requests" and "urllib" libraries.')

This comment has been minimized.

Copy link
@sualko

sualko Jun 8, 2017

Member

This comment has been minimized.

Copy link
@sualko

sualko Jun 8, 2017

Member

see #18

This comment has been minimized.

Copy link
@MarcelWaldvogel

MarcelWaldvogel Jun 8, 2017

Author Contributor

Oops, fixed in 13cf3b8

return False

if r.status_code != requests.codes.ok:
Expand Down

0 comments on commit fdf9d86

Please sign in to comment.