Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fix missing `f` prefix on f-strings (#1649)

bcoles5ac603d24255
diff --git a/sfcli.py b/sfcli.py
index a1abbd43..0ad56504 100755
--- a/sfcli.py
+++ b/sfcli.py
@@ -1011,7 +1011,7 @@ class SpiderFootCli(cmd.Cmd):
self.dprint(f"Unable to start scan: {s[1]}")
if "-w" in c[0]:
- return self.do_logs("{s[1]} -w")
+ return self.do_logs(f"{s[1]} -w")
return None
diff --git a/spiderfoot/correlation.py b/spiderfoot/correlation.py
index 1343b9a4..29dbf122 100644
--- a/spiderfoot/correlation.py
+++ b/spiderfoot/correlation.py
@@ -415,7 +415,7 @@ class SpiderFootCorrelator:
# Aggregate events according to the rule
def aggregate_events(self, rule: dict, events: list) -> dict:
if 'field' not in rule:
- self.error("Unable to find field definition for aggregation in {rule['id']}")
+ self.error(f"Unable to find field definition for aggregation in {rule['id']}")
return False
# strip sub fields that don't match value