Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
doc-hex committed May 23, 2024
1 parent 411e440 commit 6bfa639
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cktap/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,16 +1063,18 @@ def upload_artwork(cvc, image, localhost, skip_prompts, init_card, meta, offline
print(f" {label}: ", end='')

if fn == 'image':
print('(%d bytes)' % len(data[fn]))
if image:
print('(from %s)' % image)
else:
print('(%d bytes - unchanged)' % len(data[fn]))
else:
print(data[fn])

print('\n\n')
if click.confirm("All correct?", default=True): break
if click.confirm("Quit now?"): sys.exit(0)


if image and not data['image']:
if image:
# will let server validate the image contents because I don't
# want to add Pillow to dependances here
raw = open(image, 'rb').read()
Expand Down

0 comments on commit 6bfa639

Please sign in to comment.