diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-02-08 12:33:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 12:33:30 -0500 |
commit | 0963d39ea66be95d44f8f4ae29fa6f33fc6740b4 (patch) | |
tree | f0a24fd1cf8d2889a25704a9b1bcd374a37ed99e /changelog.d/9333.bugfix | |
parent | Merge pull request #9150 from Yoric/develop-context (diff) | |
download | synapse-0963d39ea66be95d44f8f4ae29fa6f33fc6740b4.tar.xz |
Handle additional errors when previewing URLs. (#9333)
* Handle the case of lxml not finding a document tree. * Parse the document encoding from the XML tag.
Diffstat (limited to 'changelog.d/9333.bugfix')
-rw-r--r-- | changelog.d/9333.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/9333.bugfix b/changelog.d/9333.bugfix new file mode 100644 index 0000000000..c34ba378c5 --- /dev/null +++ b/changelog.d/9333.bugfix @@ -0,0 +1 @@ +Fix additional errors when previewing URLs: "AttributeError 'NoneType' object has no attribute 'xpath'" and "ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.". |