From 993a7f585c61ea907a61120ac874bb2ed1f79441 Mon Sep 17 00:00:00 2001 From: "sam@samr1.net" Date: Wed, 16 Apr 2025 12:05:41 +0200 Subject: [PATCH] fix: replace bare except to allow interrupting execution --- staticmap/staticmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticmap/staticmap.py b/staticmap/staticmap.py index 7378ec2..07faaae 100644 --- a/staticmap/staticmap.py +++ b/staticmap/staticmap.py @@ -422,7 +422,7 @@ def _draw_base_layer(self, image): try: response_status_code, response_content = future.result() - except: + except Exception: response_status_code, response_content = None, None if response_status_code != 200: