Skip to content

Commit

Permalink
Fix if self.handles['plot'] = None
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 28, 2023
1 parent e0bc221 commit 8e5d3ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geoviews/plotting/bokeh/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def initialize_plot(self, ranges=None, plot=None, plots=None, source=None):

def _postprocess_hover(self, renderer, source):
super()._postprocess_hover(renderer, source)
hover = getattr(self.handles["plot"], "hover", [None])[0]
hover = getattr(self.handles["plot"], "hover")
hover = hover[0] if hover else None
if (not self.geographic or hover is None or
isinstance(hover.tooltips, str) or self.projection is not GOOGLE_MERCATOR
or hover.tooltips is None or 'hv_created' not in hover.tags):
Expand Down

0 comments on commit 8e5d3ad

Please sign in to comment.