Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/xword_dl/downloader/amuniversaldownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def fetch_data(self, solver_url):
attempts = 3
while attempts:
try:
res = requests.get(solver_url)
res = self.session.get(solver_url)
xword_data = res.json()
break
except json.JSONDecodeError:
Expand Down Expand Up @@ -133,7 +133,7 @@ def find_by_date(self, dt):
self.date = dt
url = f"http://picayune.uclick.com/comics/usaon/data/usaon{dt:%y%m%d}-data.xml"
try:
res = requests.head(url)
res = self.session.head(url)
res.raise_for_status()
except requests.HTTPError:
raise XWordDLException("Unable to find puzzle for date provided.")
Expand All @@ -159,7 +159,7 @@ def find_solver(self, url):
return url

def fetch_data(self, solver_url):
res = requests.get(solver_url)
res = self.session.get(solver_url)

xw_data = res.content.decode()

Expand Down