mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-16 04:02:56 -06:00
[FIX][document_sftp] Protect import
This module has an unprotected import that breaks the system when `paramiko` is not installed. @Tecnativa
This commit is contained in:
parent
b6faa0e4c2
commit
dc56655ca2
@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2016 Therp BV <http://therp.nl>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
import paramiko
|
||||
import logging
|
||||
import socket
|
||||
import StringIO
|
||||
@ -9,6 +8,7 @@ import threading
|
||||
from openerp import SUPERUSER_ID, api, models
|
||||
from openerp.modules.registry import RegistryManager
|
||||
try:
|
||||
import paramiko
|
||||
from ..document_sftp_transport import DocumentSFTPTransport
|
||||
from ..document_sftp_server import DocumentSFTPServer
|
||||
from ..document_sftp_sftp_server import DocumentSFTPSftpServerInterface,\
|
||||
|
Loading…
Reference in New Issue
Block a user