From 918bfd3ab745e711c5546031676612ff3a8c7bfe Mon Sep 17 00:00:00 2001 From: Sagar Badiyani Date: Tue, 28 Jun 2022 21:28:18 +0530 Subject: [PATCH] Initial Commit --- src/Osintgram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Osintgram.py b/src/Osintgram.py index 7abe11d6..4eb789c0 100644 --- a/src/Osintgram.py +++ b/src/Osintgram.py @@ -131,6 +131,8 @@ def get_addrs(self): address = {} for k, v in locations.items(): details = self.geolocator.reverse(k) + if not details: + continue unix_timestamp = datetime.datetime.fromtimestamp(v) address[details.address] = unix_timestamp.strftime('%Y-%m-%d %H:%M:%S')