Skip to content

Commit

Permalink
Add sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Feb 11, 2025
1 parent 2b3d323 commit 8df1be2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ee_plugin/Map.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_iface() -> gui.QgisInterface:
# Lazy import to ensure that iface is available after gqis is initialized
from qgis.utils import iface

assert iface, "QGIS interface not available. Has QGIS been initialized?"
return iface


Expand Down

0 comments on commit 8df1be2

Please sign in to comment.