From 28298ae2121576bddd86172d4efbe34ae1dc5049 Mon Sep 17 00:00:00 2001 From: archetipo Date: Wed, 2 Sep 2015 11:23:26 +0200 Subject: [PATCH] [FIX] handled ssl hosts [FIX] Flake8 --- auto_backup/model/backup_scheduler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/auto_backup/model/backup_scheduler.py b/auto_backup/model/backup_scheduler.py index f074bb7a3..65e234a2b 100644 --- a/auto_backup/model/backup_scheduler.py +++ b/auto_backup/model/backup_scheduler.py @@ -33,7 +33,6 @@ except ImportError: from openerp import models, fields, api, _ from openerp.exceptions import except_orm, Warning from openerp import tools -from openerp import netsvc import logging _logger = logging.getLogger(__name__) @@ -264,7 +263,6 @@ class db_backup(models.Model): conn, 'dump', rec.adminpassword, rec.name) except: _logger.info( - 'backup', netsvc.LOG_INFO, _( "Couldn't backup database %s. " "Bad database administrator" @@ -277,8 +275,7 @@ class db_backup(models.Model): fp.close() else: _logger.info( - 'backup', netsvc.LOG_INFO, - "database %s doesn't exist on http://%s:%s" % + ("database %s doesn't exist on http://%s:%s") % (rec.name, rec.host, rec.port)) return False # Check if user wants to write to SFTP or not.