mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-12 13:39:52 +00:00
fix bug #787
This commit is contained in:
parent
1fa51e6b7c
commit
3bbd3685d8
1 changed files with 11 additions and 2 deletions
|
@ -177,8 +177,17 @@ class Plugin(BasePlugin):
|
||||||
try:
|
try:
|
||||||
bundle = {"labels": {}}
|
bundle = {"labels": {}}
|
||||||
for key, value in self.wallet.labels.iteritems():
|
for key, value in self.wallet.labels.iteritems():
|
||||||
encoded = self.encode(key)
|
try:
|
||||||
bundle["labels"][encoded] = self.encode(value)
|
encoded_key = self.encode(key)
|
||||||
|
except:
|
||||||
|
print_error('cannot encode', encoded_key)
|
||||||
|
continue
|
||||||
|
try:
|
||||||
|
encoded_value = self.encode(value)
|
||||||
|
except:
|
||||||
|
print_error('cannot encode', encoded_value)
|
||||||
|
continue
|
||||||
|
bundle["labels"][encoded_key] = encoded_value
|
||||||
|
|
||||||
params = json.dumps(bundle)
|
params = json.dumps(bundle)
|
||||||
connection = httplib.HTTPConnection(self.target_host)
|
connection = httplib.HTTPConnection(self.target_host)
|
||||||
|
|
Loading…
Add table
Reference in a new issue