Skip to content

Commit

Permalink
Merge pull request #422 from multidadosti-erp/fix/suds_import
Browse files Browse the repository at this point in the history
[FIX] Suds ImportError: cannot import name TransportError
  • Loading branch information
rvalyi committed Nov 3, 2016
2 parents 489889c + 56be59e commit c60f64e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions l10n_br_zip_correios/models/webservice_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
except ImportError:
raise UserError(_(u'Erro!'), _(u"Biblioteca Suds não instalada!"))

try:
# to pip install suds (version: 0.4)
from suds.client import TransportError
except ImportError as ex:
# to apt-get install python-suds (version: 0.7~git20150727.94664dd-3)
from suds.transport import TransportError

_logger = logging.getLogger(__name__)


Expand Down

0 comments on commit c60f64e

Please sign in to comment.