diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d38505b..556d2c64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Changelog +* Fixes a syntax error that caused a bug when POSTing data in http-resilience mode, if + supplying headers or other kwargs. ## 6.25.0 - Apr 14, 2026 * Adds multiple elected official role types for executive branch: treasurer, auditor, diff --git a/openstates/scrape/base.py b/openstates/scrape/base.py index 80a2df66..8048fae8 100644 --- a/openstates/scrape/base.py +++ b/openstates/scrape/base.py @@ -415,7 +415,7 @@ def get(self, url, **kwargs): return super().get(url, **kwargs) def post(self, url, data=None, json=None, **kwargs): - request_func = lambda: super(Scraper, self).post(url, data=data, json=json**kwargs) # noqa: E731 + request_func = lambda: super(Scraper, self).post(url, data=data, json=json, **kwargs) # noqa: E731 if self.http_resilience_mode: return self.request_resiliently(request_func) else: diff --git a/pyproject.toml b/pyproject.toml index 65d48b1b..e1744639 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openstates" -version = "6.25.0" +version = "6.25.1" description = "core infrastructure for the openstates project" authors = ["James Turk "] license = "MIT"