Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'gz' referenced before assignment #5

Open
TheTechRobo opened this issue Jun 16, 2022 · 0 comments
Open

Comments

@TheTechRobo
Copy link

TheTechRobo commented Jun 16, 2022

I'm getting this error:

thetechrobo@thetechrobovps:/m/b/I/D/downsandson ❯❯❯ megawarc --verbose convert ../MEGAWARC.tar
Copying 1652740309829c5a3e1fc0bf20-1_1652740337.315711 to tar
Copying 1652740309829c5a3e1fc0bf20-1_1652740337.315711/wget.tmp to tar
Copying 1652740309829c5a3e1fc0bf20-1_1652740337.315711/wget.log to tar
Copying 1652740309829c5a3e1fc0bf20-1_1652740337.315711/funeralhome-1934cdbeadc09ac1a98713bb2b1d8ca41f8f2ec1-20220516-223149.warc.os.cdx.gz to tar
Checking 1652740309829c5a3e1fc0bf20-1_1652740337.315711/funeralhome-1934cdbeadc09ac1a98713bb2b1d8ca41f8f2ec1-20220516-223149.warc.gz
Traceback (most recent call last):
  File "/home/thetechrobo/.local/bin/megaward-called", line 740, in <module>
    main()
  File "/home/thetechrobo/.local/bin/megaward-called", line 693, in main
    mwb.process()
  File "/home/thetechrobo/.local/bin/megaward-called", line 327, in process
    self.process_entry(tarinfo, warc_out, tar_out, json_out)
  File "/home/thetechrobo/.local/bin/megaward-called", line 362, in process_entry
    copy_to_file=warc_out, verbose=self.verbose)
  File "/home/thetechrobo/.local/bin/megaward-called", line 275, in test_gz
    args=(gz.stdout, d_wget_at)
UnboundLocalError: local variable 'gz' referenced before assignment

Here's the file it was Checking:

https://transfer.archivete.am/SWZGI/failed_on.warc.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant