From 3960915812dc170d8e6f00058855f4e77e7fd0bb Mon Sep 17 00:00:00 2001 From: "Bora M. Alper" Date: Tue, 6 Jun 2017 14:33:11 +0300 Subject: [PATCH] fixes #62 "TypeError: argument of type 'int' is not iterable" --- magneticod/magneticod/persistence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magneticod/magneticod/persistence.py b/magneticod/magneticod/persistence.py index 3d80bf1..2fea51b 100644 --- a/magneticod/magneticod/persistence.py +++ b/magneticod/magneticod/persistence.py @@ -81,7 +81,7 @@ class Database: assert type(info[b"length"]) is int files.append((info_hash, info[b"length"], name)) # TODO: Make sure this catches ALL, AND ONLY operational errors - except (bencode.BencodeDecodingError, AssertionError, KeyError, AttributeError, UnicodeDecodeError): + except (bencode.BencodeDecodingError, AssertionError, KeyError, AttributeError, UnicodeDecodeError, TypeError): return False self.__pending_metadata.append((info_hash, name, sum(f[1] for f in files), discovered_on))