Fix existing report warning

This commit is contained in:
Sean Whalen
2018-03-27 09:57:05 -04:00
parent 35adcb63ca
commit 5d2e766d65

View File

@@ -210,8 +210,8 @@ def save_aggregate_report_to_elasticsearch(aggregate_report):
search.query = org_name_query & domain_query & date_range_query
existing = search.execute()
if len(existing) > 0:
raise AlreadySaved("Aggregate from {0} about {1} with end date (2) "
"already exists in "
raise AlreadySaved("Aggregate report from {0} about {1} with end date "
"(2) already exists in "
"Elasticsearch".format(org_name,
domain,
end_date_human))