# otherwise, union the results from all the causes
res = QueryResult()
for clause in query.clauses:
- res.extend(self.process_query_clause(clause), max)
+ res.extend(self.process_query_clause(clause))
if max and len(res) >= max:
res.truncate(max)
break
max = session.limit
if max: max += 1
- query_result = self.process_full_query(query, max)
+ try:
+ query_result = self.process_full_query(query, max)
+ except Rwhois.RwhoisError, x:
+ session.wfile.write(Rwhois.error_message(x))
+ return
objects = query_result.objects()
referrals = query_result.referrals()