[FIX] bank_statement_import_ofx: optional dependency warning

Should be a short warning only.
This commit is contained in:
Antony Lesuisse
2015-01-28 01:10:41 +01:00
parent 75fa30fc54
commit 71f710c671
2 changed files with 2 additions and 4 deletions
@@ -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):
@@ -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