We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011b1ba commit 46ccb0dCopy full SHA for 46ccb0d
VERSION
@@ -1 +1 @@
1
-3.0.13
+3.0.14
core/utils.py
@@ -132,7 +132,11 @@ def write_long(self, value: int):
132
self.write(bytes([byte | 0x80]))
133
134
def write_string(self, value: str):
135
- data = value.encode('utf-8')
+ try:
136
+ data = value.encode('utf-8')
137
+ except:
138
+ logger.debug(f"encode error: {repr(value)}")
139
+ data = value.encode('utf-8', errors='ignore')
140
self.write_long(len(data))
141
self.write(data)
142
0 commit comments