Skip to content

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

Use string join

bcoles3757405b83b6
diff --git a/modules/sfp_numverify.py b/modules/sfp_numverify.py
index 7c65521e..a9c96f5b 100644
--- a/modules/sfp_numverify.py
+++ b/modules/sfp_numverify.py
@@ -130,11 +130,7 @@ class sfp_numverify(SpiderFootPlugin):
self.notifyListeners(evt)
if data.get('country_code') is not None:
- if data.get('location') == '':
- location = data.get('country_code')
- else:
- location = data.get('location') + ', ' + data.get('country_code')
-
+ location = ', '.join(filter(None, [data.get('location'), data.get('country_code')]))
evt = SpiderFootEvent("GEOINFO", location, self.__name__, event)
self.notifyListeners(evt)
else: