Skip to content

Commit

Permalink
WSCPE: ajusto pdf opcional
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Oct 18, 2021
1 parent d0d84fe commit 61ab8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wscpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
__author__ = "Mariano Reingart <reingart@gmail.com>"
__copyright__ = "Copyright (C) 2021- Mariano Reingart"
__license__ = "LGPL 3.0"
__version__ = "1.05c"
__version__ = "1.05d"

LICENCIA = """
wscpe.py: Interfaz para generar Carta de Porte Electrónica AFIP v1.5.0
Expand Down Expand Up @@ -546,7 +546,7 @@ def AnalizarCPE(self, ret, archivo="cpe.pdf"):
self.Estado = cab["estado"]
self.FechaInicioEstado = cab["fechaInicioEstado"]
self.FechaVencimiento = cab["fechaVencimiento"]
self.PDF = ret["pdf"] # base64
self.PDF = ret.get("pdf", "") # base64
cpe_bytes = self.PDF
if isinstance(cpe_bytes, string_types) and sys.version_info[0] >= 3:
cpe_bytes = cpe_bytes.encode("utf-8")
Expand Down

0 comments on commit 61ab8c7

Please sign in to comment.