Rename InterruptedError => QueryInterrupted, closes #490

This commit is contained in:
Simon Willison 2019-05-27 17:16:36 -07:00
commit bd4dbc8519
7 changed files with 20 additions and 20 deletions

View file

@ -652,7 +652,7 @@ Each Facet subclass implements a new type of facet operation. The class should l
"results": facet_results_values,
"truncated": len(facet_rows_results) > facet_size,
}
except InterruptedError:
except QueryInterrupted:
facets_timed_out.append(column)
return facet_results, facets_timed_out