Check againt missing utility
authorThierry Florac <thierry.florac@onf.fr>
Thu, 08 Oct 2015 09:47:43 +0200
changeset 13 2b20d7a5e7ee
parent 12 ecff0956facb
child 14 959fc0b26546
Check againt missing utility
src/pyams_catalog/query.py
--- a/src/pyams_catalog/query.py	Wed Jul 22 16:49:58 2015 +0200
+++ b/src/pyams_catalog/query.py	Thu Oct 08 09:47:43 2015 +0200
@@ -33,6 +33,8 @@
     def __iter__(self):
         query = self.query
         intids = self.intids
+        if intids is None:
+            raise StopIteration
         if isinstance(query, Query):
             query = query.execute()
         if isinstance(query, tuple):