mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
[Core] Catch None type country in get_peers
This commit is contained in:
parent
4df88c0df3
commit
fb8dc42acf
@ -768,7 +768,10 @@ class Torrent(object):
|
||||
except AttributeError:
|
||||
country = ''
|
||||
else:
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user