From 71f710c6718b8ff3e17bd1162cc0b4a990bfb4bc Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Wed, 28 Jan 2015 01:09:35 +0100 Subject: [PATCH] [FIX] bank_statement_import_ofx: optional dependency warning Should be a short warning only. --- .../account_bank_statement_import_ofx.py | 3 +-- addons/website_crm_score/models/sales_team.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/account_bank_statement_import_ofx/account_bank_statement_import_ofx.py b/addons/account_bank_statement_import_ofx/account_bank_statement_import_ofx.py index 6aa840917e9..61e67d51021 100644 --- a/addons/account_bank_statement_import_ofx/account_bank_statement_import_ofx.py +++ b/addons/account_bank_statement_import_ofx/account_bank_statement_import_ofx.py @@ -12,8 +12,7 @@ _logger = logging.getLogger(__name__) try: from ofxparse import OfxParser as ofxparser except ImportError: - _logger.error("OFX parser unavailable because the `ofxparse` Python library cannot be found." - "It can be downloaded and installed from `https://pypi.python.org/pypi/ofxparse`.") + _logger.warn("ofxparse not found, OFX parsing disabled.") ofxparser = None class account_bank_statement_import(osv.TransientModel): diff --git a/addons/website_crm_score/models/sales_team.py b/addons/website_crm_score/models/sales_team.py index 26acb79206d..6f03d18186c 100644 --- a/addons/website_crm_score/models/sales_team.py +++ b/addons/website_crm_score/models/sales_team.py @@ -20,8 +20,7 @@ try: return bool(address.validate_address(mail)) except ImportError: - _logger.warning('Flanker library not found, Flanker features (check email on lead) disabled. \ - If you plan to use it, please install the Flanker library from http://pypi.python.org/pypi/flanker') + _logger.warning('flanker not found, email validation disabled.') def checkmail(mail): return True