diff --git a/get_nib.py b/get_nib.py
index e3e9ff0a8e28cf4d7c2e221b1ce1a39f5221cd50..15cceb0d63b23c3f16458e4a1ca59b1820de6ece 100644
--- a/get_nib.py
+++ b/get_nib.py
@@ -673,6 +673,9 @@ class getnib:
                 param ='{Filter:"ortofototype in (6,7)",Coordinates:"'+coords+'",InputWKID:'+str(crs_proj_int)+',StopOnCover:false}'
             if ir and not sat and not of:
                 param ='{Filter:"ortofototype in (7)",Coordinates:"'+coords+'",InputWKID:'+str(crs_proj_int)+',StopOnCover:false}'
+            if not of and not sat and not ir:
+                self.iface.messageBar().pushMessage("Error", "project type must be set", level=Qgis.Critical, duration=3)
+                return
           
             # para=parse.quote('{Filter:"ortofototype in (1,2,3,4,5,6,7,8,9)",Coordinates:"'+coords+'",InputWKID:'+str(crs_proj_int)+',StopOnCover:false}')
             para=parse.quote(param)