diff --git a/backend/pashub_fetcher/pashub_client.py b/backend/pashub_fetcher/pashub_client.py index 27342c25..79d81838 100644 --- a/backend/pashub_fetcher/pashub_client.py +++ b/backend/pashub_fetcher/pashub_client.py @@ -75,7 +75,7 @@ class PashubClient: url = f"{self.base}/jobs/{job_id}" logger.debug( - f"About to make API request with session headers: { self.session.headers}" + f"About to make API request with session headers: {self.session.headers}" ) r = self.session.get(url) @@ -87,7 +87,9 @@ class PashubClient: try: return r.json()["uprn"] except Exception as e: - logger.warning(f"Failed to get UPRN for Job ID {job_id}", e) + logger.warning( + f"Failed to get UPRN for Job ID {job_id} with exception: {e}" + ) return None def _select_latest_core_files(