Catch exception

pull/82/merge
Raphaël Vinot 2016-12-16 11:52:51 +01:00
parent 467e50327d
commit ffc0a97126
1 changed files with 5 additions and 2 deletions

View File

@ -261,8 +261,11 @@ def handler(q=False):
values = DomainTools()
services = get_services(request)
if services:
for s in services:
globals()[s](domtools, to_query, values)
try:
for s in services:
globals()[s](domtools, to_query, values)
except Exception as e:
print(type(e), e)
return {'results': values.dump()}