def updateAccount(self):
    headers = {'Temp-URL-Key': self.temp_url_key}
    if (self.temp_url_key_2 is not None):
        headers['Temp-URL-Key-2'] = self.temp_url_key_2
    try:
        self.swift_conn.post_account(headers)
    except Exception as err:
        logging.error(str(err))
        raise Exception(('Update account failed with swift file server: ' + str(err)))
def updateAccount(self):
    headers = {'Temp-URL-Key': self.temp_url_key}
    if (self.temp_url_key_2 is not None):
        headers['Temp-URL-Key-2'] = self.temp_url_key_2
    try:
        self.swift_conn.post_account(headers)
    except Exception as err:
        logging.error(str(err))
        raise Exception(('Update account failed with swift file server: ' + str(err)))