You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ python3
Python 3.7.7 (default, Mar 13 2020, 10:23:39)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import bencode
>>> bencode.decode('d5:title7:Examplee')
Traceback (most recent call last):
File "/home/da/.local/lib/python3.7/site-packages/bencode/__init__.py", line 180, in bdecode
r, l = decode_func[value[0:1]](value, 0)
KeyError: 'd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/da/.local/lib/python3.7/site-packages/bencode/__init__.py", line 182, in bdecode
raise BencodeDecodeError("not a valid bencoded string")
bencode.exceptions.BencodeDecodeError: not a valid bencoded string
$ pip3 install --user bencode.py
Requirement already satisfied: bencode.py in ./.local/lib/python3.7/site-packages (2.1.0)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: