# HG changeset patch # User Thierry Florac # Date 1444290463 -7200 # Node ID 2b20d7a5e7eee85ca1d43621404820414dab7f6d # Parent ecff0956facb1007d37348be34cb73bc8e51baa4 Check againt missing utility diff -r ecff0956facb -r 2b20d7a5e7ee 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):