mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-25 23:09:28 +00:00
Fix existing report warning
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user