mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 08:29:03 +00:00
Fixes a bug in WhatsApp iOS module
This commit is contained in:
parent
63b95ee6a5
commit
8a507b0a0b
|
@ -198,6 +198,9 @@ def run_module(module: MVTModule) -> None:
|
||||||
module.to_timeline()
|
module.to_timeline()
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
pass
|
pass
|
||||||
|
except Exception as exc:
|
||||||
|
module.log.exception("Error when serializing data from module %s: %s",
|
||||||
|
module.__class__.__name__, exc)
|
||||||
|
|
||||||
module.save_to_json()
|
module.save_to_json()
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Whatsapp(IOSExtraction):
|
||||||
def serialize(self, record: dict) -> Union[dict, list]:
|
def serialize(self, record: dict) -> Union[dict, list]:
|
||||||
text = record.get("ZTEXT", "").replace("\n", "\\n")
|
text = record.get("ZTEXT", "").replace("\n", "\\n")
|
||||||
links_text = ""
|
links_text = ""
|
||||||
if record["links"]:
|
if record.get("links"):
|
||||||
links_text = " - Embedded links: " + ", ".join(record["links"])
|
links_text = " - Embedded links: " + ", ".join(record["links"])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user