aboutsummaryrefslogtreecommitdiff
path: root/management/commands/_private.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-12 21:32:35 +0200
committerAlban Gruin2017-09-12 21:32:35 +0200
commitc5d409e7c38cd5dd5686ce2311928587796349f9 (patch)
treec31c1a0180e12182fc7ad0062c69d1677670cfb1 /management/commands/_private.py
parent60ea5a0e2a5f61f7f764bcf01aafb362781c16da (diff)
Lecture du contenu de la réponse avec r.content et non r.text pour limiter les problèmes
Diffstat (limited to 'management/commands/_private.py')
-rw-r--r--management/commands/_private.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py
index 17896c4..2b57599 100644
--- a/management/commands/_private.py
+++ b/management/commands/_private.py
@@ -159,5 +159,5 @@ def get_xml(url):
r = requests.get(url)
r.encoding = "utf8"
- soup = BeautifulSoup(r.text, "html.parser")
+ soup = BeautifulSoup(r.content, "html.parser")
return soup