Skip to content

Commit

Permalink
fix hasattr()
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McCloy <[email protected]>
  • Loading branch information
wmvanvliet and drammock authored Jan 22, 2025
1 parent 735b9c2 commit 6f00a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mne/viz/topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _plot_topo_onpick(event, show_func):
fig = orig_ax.figure

# If we are doing lasso select, allow it to handle the click instead.
if hasattr("lasso") and event.key in ["control", "ctrl+shift"]:
if hasattr(fig, "lasso") and event.key in ["control", "ctrl+shift"]:
return

# make sure that the swipe gesture in OS-X doesn't open many figures
Expand Down

0 comments on commit 6f00a75

Please sign in to comment.