[FIX] bank_statement_import_ofx: optional dependency warning
Should be a short warning only.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user