Skip to content

Commit

Permalink
Error with mci_ipm_encode - input/output format mixed-up (issue #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelosa committed Nov 23, 2023
1 parent aacf331 commit 140a517
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cardutil/cli/mci_ipm_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ def mci_ipm_encode(in_file, out_file=None, in_encoding='cp500', out_encoding='la
"""

in_blocked = True if in_format == '1014' else False
with IpmWriter(out_file, encoding=out_encoding, blocked=in_blocked) as writer:
out_blocked = True if out_format == '1014' else False
reader = IpmReader(in_file, encoding=in_encoding, blocked=out_blocked, iso_config=get_config())
out_blocked = True if out_format == '1014' else False
with IpmWriter(out_file, encoding=out_encoding, blocked=out_blocked) as writer:
reader = IpmReader(in_file, encoding=in_encoding, blocked=in_blocked, iso_config=get_config())
writer.write_many(reader)


Expand Down

0 comments on commit 140a517

Please sign in to comment.