|
|
|
@ -261,7 +261,12 @@ class Connection(NetworkBase):
|
|
|
|
|
timeout = self._options['NetworkManager']['timeout'] |
|
|
|
|
try: |
|
|
|
|
_log.debug('Starting request of %s (timeout %d)' % (url, timeout)) |
|
|
|
|
response = urllib2.urlopen(request, timeout=timeout) |
|
|
|
|
try: |
|
|
|
|
response = urllib2.urlopen(request, timeout=timeout) |
|
|
|
|
except TypeError, e: |
|
|
|
|
# Python 2.5 don't have the timeout parameter. |
|
|
|
|
response = urllib2.urlopen(request) |
|
|
|
|
|
|
|
|
|
data = response.read() |
|
|
|
|
except urllib2.HTTPError, exc: |
|
|
|
|
_log.debug('HTTPError: %d' % (exc.code)) |
|
|
|
|