Skip to content

Commit

Permalink
Merge pull request #118 from mampfes/fix_next_year_ics
Browse files Browse the repository at this point in the history
fix fault in ics scraper
  • Loading branch information
mampfes authored Dec 3, 2021
2 parents a961a30 + efba504 commit 089e359
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ def fetch(self):
if now.month == 12:
# also get data for next year if we are already in december
url = self._url.replace("{%Y}", str(now.year + 1))
self._params[self._year_field] = str(now.year + 1)
if self._year_field is not None:
self._params[self._year_field] = str(now.year + 1)

try:
entries.extend(self.fetch_url(url), self._params)
Expand Down

0 comments on commit 089e359

Please sign in to comment.