Skip to content

Commit

Permalink
[FIX] l10n_ar_account_withholding: error al cambiar de compañía en fa…
Browse files Browse the repository at this point in the history
…ctura en borrador

closes #925

Ticket: 81658
X-original-commit: 32d1a5e
Signed-off-by: Katherine Zaoral <[email protected]>
Signed-off-by: pablohmontenegro <[email protected]>
  • Loading branch information
pablohmontenegro committed Oct 17, 2024
1 parent afcd957 commit 0b40764
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def name_get(self):
def descompress_file(self, file_padron):
_logger.log(25, "Descompress zip file")
ruta_extraccion = "/tmp"
file = base64.decodestring(file_padron)
try:
file = base64.b64decode(file_padron)
except:
file = base64.decodestring(file_padron)
fobj = tempfile.NamedTemporaryFile(delete=False)
fname = fobj.name
fobj.write(file)
Expand Down

0 comments on commit 0b40764

Please sign in to comment.