Skip to content

Commit

Permalink
Allow redirects in get_question
Browse files Browse the repository at this point in the history
  • Loading branch information
zmpster committed Nov 3, 2020
1 parent 30621e4 commit 436348b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ergo/platforms/metaculus/metaculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_question(self, id: int, name=None) -> MetaculusQuestion:
:param id: Question id (can be read off from URL)
:param name: Name to assign to this question (used in models)
"""
r = self.s.get(f"{self.api_url}/questions/{id}/", allow_redirects=False)
r = self.s.get(f"{self.api_url}/questions/{id}/")
data = r.json()
if not data.get("possibilities"):
print(id)
Expand Down

0 comments on commit 436348b

Please sign in to comment.