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

Bencode Error... #1

Closed
ne0ark opened this issue Feb 28, 2013 · 2 comments
Closed

Bencode Error... #1

ne0ark opened this issue Feb 28, 2013 · 2 comments

Comments

@ne0ark
Copy link

ne0ark commented Feb 28, 2013

data = bencode.bread( torrentPath )
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 173, in bread
return bdecode(handle.read())
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 156, in bdecode
return Decoder(bytes, char_encoding).decode(check_trailer=True)
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 94, in decode
obj[key] = self.decode()
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 93, in decode
key = self.decode()
File "/local/lib/python2.7/site-packages/pyrobase-0.2-py2.7.egg/pyrobase/bencode.py", line 49, in decode
self.offset, len(self.bytes),
BencodeError: Unexpected end of data at offset 60408/15786

@pyroscope
Copy link
Owner

How is feeding bad data to the code an issue?

@ne0ark
Copy link
Author

ne0ark commented Mar 1, 2013

How would one check the .torrent files?

@ne0ark ne0ark closed this as completed Mar 4, 2013
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

2 participants