Skip to content

Commit

Permalink
Fix test issue caused by change in Requests library
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeNetwork committed Jul 17, 2021
1 parent bb0e008 commit bbaa469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions praw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def _fetch(self):

def _parse_xml_response(self, response: Response):
"""Parse the XML from a response and raise any errors found."""
response.encoding = "utf-8"
xml = response.text
root = XML(xml)
tags = [element.tag for element in root]
Expand Down

0 comments on commit bbaa469

Please sign in to comment.