]> git.phdru.name Git - extfs.d.git/blobdiff - torrent
Fix torrent VFS: announce sublist can be empty
[extfs.d.git] / torrent
diff --git a/torrent b/torrent
index 1dccb6556c5d2e6f8da4f27b2b3a30b31a7a2b6d..ebc3ee24650ab2ac49ade8e615eac620732707ef 100755 (executable)
--- a/torrent
+++ b/torrent
@@ -35,9 +35,9 @@ The filesystem is, naturally, read-only.
 
 """
 
-__version__ = "1.2.3"
+__version__ = "1.2.4"
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2010-2015 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2010-2016 PhiloSoft Design"
 __license__ = "GPL"
 
 
@@ -308,7 +308,7 @@ def decode_datetime(dt):
 
 
 def decode_announce_list(announce):
-    return '\n'.join(l[0] for l in announce)
+    return '\n'.join(l[0] for l in announce if l)
 
 
 command = sys.argv[1]