diff --git a/indexer.py b/indexer.py index ee516d5..0e9fa39 100644 --- a/indexer.py +++ b/indexer.py @@ -135,7 +135,10 @@ def createNewTorrent(reuqest): try: announce = bcoded[b'announce-list'] except KeyError: - announce = (bcoded[b'announce'], ) + try: + announce = (bcoded[b'announce'], ) + except KeyError: + announce = [] is_ours = False for a in announce: