mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
[Core] Catch None type country in get_peers
This commit is contained in:
parent
4df88c0df3
commit
fb8dc42acf
1 changed files with 4 additions and 1 deletions
|
@ -768,7 +768,10 @@ class Torrent(object):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
country = ''
|
country = ''
|
||||||
else:
|
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({
|
ret.append({
|
||||||
'client': client,
|
'client': client,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue