tryton-ar / party_ar

Integrates party with AFIP
GNU General Public License v3.0
1 stars 3 forks source link

crash import_cron_afip #25

Closed lukio closed 10 months ago

lukio commented 10 months ago
   219 During handling of the above exception, another exception occurred:
   220 
   221 Traceback (most recent call last):
   222   File "/usr/lib/python3.9/logging/__init__.py", line 1079, in emit
   223     msg = self.format(record)
   224   File "/usr/lib/python3.9/logging/__init__.py", line 923, in format
   225     return fmt.format(record)
   226   File "/usr/lib/python3.9/logging/__init__.py", line 659, in format
   227     record.message = record.getMessage()
   228   File "/usr/lib/python3.9/logging/__init__.py", line 363, in getMessage
   229     msg = msg % self.args
   230 TypeError: not enough arguments for format string
   231 Call stack:
   232   File "/usr/lib/python3.9/threading.py", line 912, in _bootstrap
   233     self._bootstrap_inner()
   234   File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
   235     self.run()
   236   File "/usr/lib/python3.9/threading.py", line 892, in run
   237     self._target(*self._args, **self._kwargs)
   238   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/ir/cron.py", line 184, in run
   239     cron.run_once()
   240   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/model/descriptors.py", line 31, in newfunc
   241     return self.func(owner, [instance], *args, **kwargs)
   242   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/model/modelview.py", line 697, in wrapper
   243     return func(cls, records, *args, **kwargs)
   244   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/modules/company/ir.py", line 109, in run_once
   245     super(Cron, cls).run_once([cron])
   246   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/model/descriptors.py", line 33, in newfunc
   247     return self.func(owner, *args, **kwargs)
   248   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/model/modelview.py", line 697, in wrapper
   249     return func(cls, records, *args, **kwargs)
   250   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/ir/cron.py", line 156, in run_once
   251     getattr(Model, method)()
   252   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/modules/party_ar/party.py", line 493, in import_cron_afip
   253     cls.import_census(args)
   254   File "/opt/trytond/quino/env/lib/python3.9/site-packages/trytond/modules/party_ar/party.py", line 484, in import_census
   255     logger.error('Could not retrieve "%s" msg AFIP: "%s".',
   256 Message: 'Could not retrieve "%s" msg AFIP: "%s".'
   257 Arguments: (('30707010211', 'Tu Constancia se encuentra bloqueada. El 30-nov-2018 venció el plazo para constituir el domicilio fiscal electrónico. Constituilo para desbloquearla.'),)
   258 Fri Dec 15 11:14:34 2023] INFO:pysimplesoap.client:POST https://aws.afip.gov.ar/sr-padron/webservices/personaServiceA5