Skip to content

Commit

Permalink
use exception from python-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdel committed Feb 15, 2019
1 parent 65b0865 commit acd8092
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from argo_egi_connectors.helpers import retry

from ssl import SSLError
from xml.parsers.expat import ExpatError
from urlparse import urlparse

Expand Down Expand Up @@ -58,7 +57,7 @@ def connection(logger, msgprefix, globopts, scheme, host, url, custauth=None):

return buf

except SSLError as e:
except requests.exceptions.SSLError as e:
if (getattr(e, 'args', False) and type(e.args) == tuple
and type(e.args[0]) == str
and 'timed out' in e.args[0]):
Expand Down

0 comments on commit acd8092

Please sign in to comment.