From 39ee781ce1e01870b8f3862240730464ffa61878 Mon Sep 17 00:00:00 2001 From: "sam@samr1.net" Date: Mon, 16 Mar 2026 09:58:21 +0100 Subject: [PATCH] improve error logging --- staticmap3/staticmap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/staticmap3/staticmap.py b/staticmap3/staticmap.py index 6607e3a..ba0eb0f 100644 --- a/staticmap3/staticmap.py +++ b/staticmap3/staticmap.py @@ -469,7 +469,9 @@ def _draw_base_layer(self, image: "Image.Image") -> None: try: response_status_code, response_content = future.result() except Exception: - response_status_code, response_content = None, None + logger.exception("request failed") + failed_tiles.append(tile) + continue if response_status_code != 200: logger.error(