Remove unused exception

This commit is contained in:
vic
2013-05-24 22:30:56 +04:00
parent df3258ea83
commit bf9eda5af8

View File

@@ -40,14 +40,10 @@ def extract_virtual_ips(ipaout):
def write_config(remote, path, text):
try:
#todo: move to down layer (paramiko)
config = remote.open(path, 'w')
config.write(text)
logging.info('Write config %s' % text)
config.close()
except IOError as e:
raise IOError('Filename: "{path}", error: {error}'.format(path=path, error=e.message or e.strerror))
config = remote.open(path, 'w')
config.write(text)
logging.info('Write config %s' % text)
config.close()
def retry(count, func, **kwargs):
i = 0