better 'Caught exception reading instance data' error

This commit is contained in:
Scott Moser 2010-03-25 10:43:54 -04:00
parent 450c4606a1
commit a0ea62d8b4

View File

@ -54,10 +54,10 @@ def retry_url(url, retry_on_404=True):
except: except:
pass pass
#boto.log.exception('Caught exception reading instance data') #boto.log.exception('Caught exception reading instance data')
sys.stderr.write('Caught exception reading instance data') sys.stderr.write('Caught exception reading instance data: %s\n' % url)
time.sleep(2**i) time.sleep(2**i)
#boto.log.error('Unable to read instance data, giving up') #boto.log.error('Unable to read instance data, giving up')
sys.stderr.write('Caught exception reading instance data, giving up') sys.stderr.write('Caught exception reading instance data, giving up\n')
return '' return ''
def get_instance_metadata(version='latest'): def get_instance_metadata(version='latest'):