Skip to content

Commit

Permalink
feat(mass): Fix cleanup content file
Browse files Browse the repository at this point in the history
The encoding cause an issue when uploading
html to aws.  Decode html should fix this
  • Loading branch information
flooie committed Nov 21, 2024
1 parent 2567793 commit 8365068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion juriscraper/opinions/united_states/state/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def cleanup_content(content):
new_tree = etree.Element("html")
body = etree.SubElement(new_tree, "body")
body.append(content)
return html.tostring(new_tree, pretty_print=True, encoding="unicode")
return html.tostring(new_tree).decode("utf-8")

0 comments on commit 8365068

Please sign in to comment.