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

Creation of torrent fails with UnboundLocalError #113

Open
youk opened this issue Nov 4, 2021 · 0 comments
Open

Creation of torrent fails with UnboundLocalError #113

youk opened this issue Nov 4, 2021 · 0 comments

Comments

@youk
Copy link

youk commented Nov 4, 2021

It's impossible to create a torrent file with empty announce URL. When empty list is passed to pyrocore.util.metafile.create(), the code fails with UnboundLocalError: local variable 'meta' referenced before assignment.

Using empty announce URL is useful since for some trackers one doesn't need to specify announce URL in advance. Those trackers add announce URL to uploaded torrent files by themselves.

At least the code shouldn't fail with UnboundLocalError but give a meaningful error message.

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