|
|
@ -336,7 +336,9 @@ def _SendChangeHTTP(options):
|
|
|
|
logging.info(options.diff)
|
|
|
|
logging.info(options.diff)
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
logging.info('Opening connection...')
|
|
|
|
connection = urllib.urlopen(url, urllib.urlencode(values), proxies=proxies)
|
|
|
|
connection = urllib.urlopen(url, urllib.urlencode(values), proxies=proxies)
|
|
|
|
|
|
|
|
logging.info('Done')
|
|
|
|
except IOError, e:
|
|
|
|
except IOError, e:
|
|
|
|
logging.info(str(e))
|
|
|
|
logging.info(str(e))
|
|
|
|
if (values.get('bot') and len(e.args) > 2 and
|
|
|
|
if (values.get('bot') and len(e.args) > 2 and
|
|
|
@ -347,7 +349,9 @@ def _SendChangeHTTP(options):
|
|
|
|
str(e.args)))
|
|
|
|
str(e.args)))
|
|
|
|
if not connection:
|
|
|
|
if not connection:
|
|
|
|
raise NoTryServerAccess('%s is unaccessible.' % url)
|
|
|
|
raise NoTryServerAccess('%s is unaccessible.' % url)
|
|
|
|
|
|
|
|
logging.info('Reading response...')
|
|
|
|
response = connection.read()
|
|
|
|
response = connection.read()
|
|
|
|
|
|
|
|
logging.info('Done')
|
|
|
|
if response != 'OK':
|
|
|
|
if response != 'OK':
|
|
|
|
raise NoTryServerAccess('%s is unaccessible. Got:\n%s' % (url, response))
|
|
|
|
raise NoTryServerAccess('%s is unaccessible. Got:\n%s' % (url, response))
|
|
|
|
|
|
|
|
|
|
|
|