mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 08:29:03 +00:00
Letting module handler catch any exception
This commit is contained in:
parent
8be60e8a04
commit
411ac53522
|
@ -102,15 +102,11 @@ class SMS(AndroidExtraction):
|
||||||
log.info("Extracted a total of %d SMS messages containing links", len(self.results))
|
log.info("Extracted a total of %d SMS messages containing links", len(self.results))
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# Checking the SMS database path
|
if (self._adb_check_file_exists(os.path.join("/", SMS_BUGLE_PATH))):
|
||||||
try:
|
self.SMS_DB_TYPE = 1
|
||||||
if (self._adb_check_file_exists(os.path.join("/", SMS_BUGLE_PATH))):
|
self._adb_process_file(os.path.join("/", SMS_BUGLE_PATH), self._parse_db)
|
||||||
self.SMS_DB_TYPE = 1
|
elif (self._adb_check_file_exists(os.path.join("/", SMS_MMSSMS_PATH))):
|
||||||
self._adb_process_file(os.path.join("/", SMS_BUGLE_PATH), self._parse_db)
|
self.SMS_DB_TYPE = 2
|
||||||
elif (self._adb_check_file_exists(os.path.join("/", SMS_MMSSMS_PATH))):
|
self._adb_process_file(os.path.join("/", SMS_MMSSMS_PATH), self._parse_db)
|
||||||
self.SMS_DB_TYPE = 2
|
else:
|
||||||
self._adb_process_file(os.path.join("/", SMS_MMSSMS_PATH), self._parse_db)
|
self.log.error("No SMS database found")
|
||||||
else:
|
|
||||||
self.log.error("No SMS database found")
|
|
||||||
except Exception as e:
|
|
||||||
self.log.error(e)
|
|
||||||
|
|
|
@ -82,7 +82,4 @@ class Whatsapp(AndroidExtraction):
|
||||||
self.results = messages
|
self.results = messages
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
try:
|
self._adb_process_file(os.path.join("/", WHATSAPP_PATH), self._parse_db)
|
||||||
self._adb_process_file(os.path.join("/", WHATSAPP_PATH), self._parse_db)
|
|
||||||
except Exception as e:
|
|
||||||
self.log.error(e)
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user