fix printing of unicode values
This commit is contained in:
@@ -185,12 +185,12 @@ class Plugin(BasePlugin):
|
|||||||
try:
|
try:
|
||||||
encoded_key = self.encode(key)
|
encoded_key = self.encode(key)
|
||||||
except:
|
except:
|
||||||
print_error('cannot encode', key)
|
print_error('cannot encode', repr(key))
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
encoded_value = self.encode(value)
|
encoded_value = self.encode(value)
|
||||||
except:
|
except:
|
||||||
print_error('cannot encode', value)
|
print_error('cannot encode', repr(value))
|
||||||
continue
|
continue
|
||||||
bundle["labels"][encoded_key] = encoded_value
|
bundle["labels"][encoded_key] = encoded_value
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user