Skip to content

Commit

Permalink
fix(warning): unused variable e and bare exceptions (#990)
Browse files Browse the repository at this point in the history
Signed-off-by: slowy07 <[email protected]>
  • Loading branch information
slowy07 authored Nov 19, 2024
1 parent 2e3e126 commit 9d20287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leafmap/bokehmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
if basemap == "OpenStreetMap":
try:
fig.add_tile(xyz.OpenStreetMap.Mapnik, retina=True)
except:
except Exception:
from bokeh.tile_providers import get_provider

fig.add_tile(get_provider(xyz.OpenStreetMap.Mapnik))
Expand Down Expand Up @@ -165,7 +165,7 @@ def add_tile(self, tile: str, **kwargs) -> None:
"""
try:
self.figure.add_tile(tile, **kwargs)
except Exception as e:
except Exception:
if "retina" in kwargs.keys():
kwargs.pop("retina")
self.figure.add_tile(tile, **kwargs)
Expand Down

0 comments on commit 9d20287

Please sign in to comment.