[FIX][document_sftp] Protect paramiko import

Yet another import protection.
This commit is contained in:
Jairo Llopis 2016-08-17 13:07:40 +02:00
parent 86b100dc59
commit 6aabf1d02e

View File

@ -5,8 +5,11 @@ import logging
import StringIO
import socket
from lxml import etree
from paramiko.ecdsakey import ECDSAKey
from openerp import SUPERUSER_ID, tools
try:
from paramiko.ecdsakey import ECDSAKey
except ImportError: # pragma: no cover
pass
_logger = logging.getLogger(__name__)