diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 1f78055d9..f5c6c7929 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -561,7 +561,10 @@ class Torrent(object): except AttributeError: country = peer.country - country = "".join([char if char.isalpha() else " " for char in country]) + try: + country = "".join([char if char.isalpha() else " " for char in country]) + except TypeError: + country = "" ret.append({ "client": client,