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 61f84fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee_plugin/Map.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def get_iface() -> gui.QgisInterface:
# Lazy import to ensure that iface is available after gqis is initialized
from qgis.utils import iface

if not iface:
raise ImportError("QGIS interface not available. Has QGIS been initialized?")
return iface


Expand Down

0 comments on commit 61f84fe

Please sign in to comment.