equal
deleted
inserted
replaced
350 cnx = cwproxy_for(url) |
350 cnx = cwproxy_for(url) |
351 cnx.timeout = self.source.http_timeout |
351 cnx.timeout = self.source.http_timeout |
352 self.source.info('Using cwclientlib for %s' % url) |
352 self.source.info('Using cwclientlib for %s' % url) |
353 resp = cnx.get(url) |
353 resp = cnx.get(url) |
354 resp.raise_for_status() |
354 resp.raise_for_status() |
355 return URLLibResponseAdapter(BytesIO(resp.text), url) |
355 return URLLibResponseAdapter(BytesIO(resp.content), url) |
356 except (ImportError, ValueError, EnvironmentError) as exc: |
356 except (ImportError, ValueError, EnvironmentError) as exc: |
357 # ImportError: not available |
357 # ImportError: not available |
358 # ValueError: no config entry found |
358 # ValueError: no config entry found |
359 # EnvironmentError: no cwclientlib config file found |
359 # EnvironmentError: no cwclientlib config file found |
360 self.source.debug(str(exc)) |
360 self.source.debug(str(exc)) |