za3k / qr-backup

Paper backup of files using QR codes
Other
132 stars 12 forks source link

During restoration process, qr-backup crashes after zbarcam finishes scanning QR codes #28

Closed arcanemachine closed 2 years ago

arcanemachine commented 2 years ago

When using the --webcam-restore option, qr-backup crashes after zbarcam finishes scanninkg all the images:

Traceback (most recent call last):
  File "/home/user/code/python/qr-backup/./qr-backup", line 1000, in <module>
    main_restore(args[1:])
  File "/home/user/code/python/qr-backup/./qr-backup", line 935, in main_restore
    assert b"\n" not in read_code
AssertionError

As a workaround, removing the assertion statement in line 935 appears to make the program work just fine.