Skip to content

Commit 3e2bdcf

Browse files
zaoraljjscarafia
authored andcommitted
[ADD] l10n_ar_afipws: improve code to show the user info about internal error in AFIP when the webservice to consult padron is not properly workinh
1 parent 24d024b commit 3e2bdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

l10n_ar_afipws/models/afipws_connection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def connect(self):
158158
try:
159159
ws.Conectar("", wsdl or "", "")
160160
except Exception as error:
161-
if 'xml.parsers.expat.ExpatError: mismatched tag' in repr(error) or \
161+
if 'ExpatError' in repr(error) or 'mismatched tag' in repr(error) or \
162162
'Conexión reinicializada por la máquina remota' in repr(error) or \
163163
"module 'httplib2' has no attribute 'SSLHandshakeError'" in repr(error):
164164
action = self.env.ref('l10n_ar_afipws.action_afip_padron')

0 commit comments

Comments
 (0)