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 33f7828 commit d9ebbbdCopy full SHA for d9ebbbd
feapder/VERSION
@@ -1 +1 @@
1
-1.5.9
+1.6.0
feapder/network/response.py
@@ -239,7 +239,10 @@ def __text(self):
239
def text(self):
240
if self._cached_text is None:
241
if self.encoding and self.encoding.upper() != FAIL_ENCODING:
242
- self._cached_text = self.__text
+ try:
243
+ self._cached_text = self.__text
244
+ except UnicodeDecodeError:
245
+ self._cached_text = self._get_unicode_html(self.content)
246
else:
247
self._cached_text = self._get_unicode_html(self.content)
248
0 commit comments