Skip to content

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

Proper bug fix for handling unicode.

smicallef8676e4d9e560
diff --git a/modules/sfp_email.py b/modules/sfp_email.py
index 68f558b0..f1faa0e2 100644
--- a/modules/sfp_email.py
+++ b/modules/sfp_email.py
@@ -80,7 +80,10 @@ class sfp_email(SpiderFootPlugin):
continue
self.sf.info("Found e-mail address: " + match)
- mail = unicode(match, 'utf-8', errors='replace')
+ if type(match) == str:
+ mail = unicode(match, 'utf-8', errors='replace')
+ else:
+ mail = match
evt = SpiderFootEvent("EMAILADDR", mail, self.__name__, parentEvent)
self.notifyListeners(evt)