Backward compatibility with tracker sharing response

This commit is contained in:
shortcutme 2019-03-16 02:11:22 +01:00
parent 8c5c3cb7a6
commit 1a9529157f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -120,6 +120,8 @@ class TrackerStorage(object):
num_success += 1
for tracker_address in res["trackers"]:
if type(tracker_address) is bytes: # Backward compatibilitys
tracker_address.decode("utf8")
added = self.onTrackerFound(tracker_address)
if added: # Only add one tracker from one source
break