import requests
import pytz
-from requests.exceptions import ReadTimeout, ConnectTimeout
+from requests.exceptions import ConnectionError, ReadTimeout, ConnectTimeout
# Own modules
from fb_tools.common import pp, to_bool
from .owner_info import ForgeOwnerInfo
-__version__ = '0.3.3'
+__version__ = '0.3.4'
LOG = logging.getLogger(__name__)
warnings.simplefilter("always")
try:
response = session.request('GET', url, timeout=http_timeout)
- except (ReadTimeout, ConnectTimeout) as e:
+ except (ConnectionError, ReadTimeout, ConnectTimeout) as e:
msg = "{c} on getting module info for {m}: {e}".format(
c=e.__class__.__name__, m=full_name, e=e)
raise BaseHookError(msg)