Skip to content

Commit

Permalink
Empty string field causes EXI encoding error (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
shalinnijel2 authored Aug 17, 2022
1 parent 81e2afe commit 040388f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iso15118/secc/states/iso15118_2_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,10 @@ async def process_message(
signature,
) = self.generate_certificate_installation_res()
except Exception as e:
logger.error(f"Error building CertificateInstallationRes: {e}")
error = f"Error building CertificateInstallationRes: {e}"
logger.error(error)
self.stop_state_machine(
str(e),
error,
message,
ResponseCode.FAILED_NO_CERTIFICATE_AVAILABLE,
)
Expand Down

0 comments on commit 040388f

Please sign in to comment.