Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
corredato committed Nov 26, 2024
1 parent e7a0e23 commit 756cc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erpbrasil/edoc/provedores/paulistana.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _prepara_envia_documento(self, edoc):
assinador = Assinatura(self._transmissao.certificado)
for rps in edoc.RPS:
data = rps.Assinatura
data_bytes = data.encode("ascii")
data_bytes = data.encode("ascii") if isinstance(data, str) else data
assinatura = assinador.sign_pkcs1v15_sha1(data_bytes)
rps.Assinatura = b64encode(assinatura).decode()
xml_assinado = self.assina_raiz(edoc, "")
Expand Down

0 comments on commit 756cc8f

Please sign in to comment.