mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Update viber.py
Address comments, remove inner try block.
This commit is contained in:
parent
276242d319
commit
af2842925f
@ -133,12 +133,8 @@ class ViberAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
attributes.add(BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID(), self._PARSER_NAME, contacts_parser.get_contact_name()))
|
attributes.add(BlackboardAttribute(BlackboardAttribute.ATTRIBUTE_TYPE.TSK_NAME.getTypeID(), self._PARSER_NAME, contacts_parser.get_contact_name()))
|
||||||
artifact.addAttributes(attributes)
|
artifact.addAttributes(attributes)
|
||||||
|
|
||||||
try:
|
|
||||||
# Post the artifact to blackboard
|
# Post the artifact to blackboard
|
||||||
current_case.getBlackboard().postArtifact(artifact, self._PARSER_NAME)
|
current_case.getBlackboard().postArtifact(artifact, self._PARSER_NAME)
|
||||||
except Blackboard.BlackboardException as e:
|
|
||||||
self.log(Level.WARNING, "Error adding viber contacts artifact to case database.", ex )
|
|
||||||
self._logger.log(Level.WARNING, traceback.format_exc())
|
|
||||||
|
|
||||||
contacts_parser.close()
|
contacts_parser.close()
|
||||||
except SQLException as ex:
|
except SQLException as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user