aboutsummaryrefslogtreecommitdiffstats
path: root/add-osm-to-mpl.py
diff options
context:
space:
mode:
Diffstat (limited to 'add-osm-to-mpl.py')
-rw-r--r--add-osm-to-mpl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/add-osm-to-mpl.py b/add-osm-to-mpl.py
index 13b275b..2708f0c 100644
--- a/add-osm-to-mpl.py
+++ b/add-osm-to-mpl.py
@@ -99,6 +99,7 @@ url = URL(x=x_tile, y=y_tile, z=zoom)
# make the request
with requests.get(url) as resp:
+ resp.raise_for_status()
img = Image.open(BytesIO(resp.content))
# plot the tile