Skip to content

Commit

Permalink
Fix listing metafiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kannibalox committed Jun 6, 2018
1 parent 26f66f3 commit 40aec5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyrocore/util/metafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ def listing(self, masked=True):
"""
# Assemble data
metainfo = bencode.bread(self.filename)
bad_encodings, bad_fields = []
bad_encodings = []
bad_fields = []
if six.PY2: #PY3 knows it's data
metainfo, bad_encodings, bad_fields = sanitize(bencode.bread(metainfo), diagnostics=True)
announce = metainfo['announce']
Expand Down

0 comments on commit 40aec5e

Please sign in to comment.