Skip to content

Commit f01ab16

Browse files
author
Valentijn Scholten
committed
simplify
1 parent 3943767 commit f01ab16

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

dojo/finding/deduplication.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,7 @@ def dedupe_batch_of_findings(findings, *args, **kwargs):
516516
if not findings:
517517
return
518518

519-
try:
520-
enabled = System_Settings.objects.get(no_cache=True).enable_deduplication
521-
except System_Settings.DoesNotExist:
522-
logger.warning("system settings not found")
523-
enabled = False
519+
enabled = System_Settings.objects.get().enable_deduplication
524520

525521
if enabled:
526522
# sort findings by id to ensure deduplication is deterministic/reproducible

0 commit comments

Comments
 (0)