@@ -84,23 +84,24 @@ def get_notificationsXII(files_found, report_folder, seeker, wrap_text, timezone
84
84
elif "AttachmentsList" in file_name :
85
85
pass # future development
86
86
87
- description = 'iOS > 12 Notifications'
88
- report = ArtifactHtmlReport ('iOS Notificatons' )
89
- report .start_artifact_report (report_folder , 'iOS Notifications' , description )
90
- report .add_script ()
91
- data_headers = ('Creation Time' , 'Bundle' , 'Title[Subtitle]' , 'Message' , 'Other Details' )
92
- report .write_artifact_data_table (data_headers , data_list , filepath )
93
- report .end_artifact_report ()
87
+ if data_list :
88
+ description = 'iOS > 12 Notifications'
89
+ report = ArtifactHtmlReport ('iOS Notificatons' )
90
+ report .start_artifact_report (report_folder , 'iOS Notifications' , description )
91
+ report .add_script ()
92
+ data_headers = ('Creation Time' , 'Bundle' , 'Title[Subtitle]' , 'Message' , 'Other Details' )
93
+ report .write_artifact_data_table (data_headers , data_list , filepath )
94
+ report .end_artifact_report ()
94
95
95
- logfunc ("Total notifications processed:" + str (len (data_list )))
96
- #logfunc("Total exported bplists from notifications:" + str(exportedbplistcount))
97
-
98
- tsvname = 'Notifications'
99
- tsv (report_folder , data_headers , data_list , tsvname )
96
+ logfunc ("Total notifications processed:" + str (len (data_list )))
97
+ #logfunc("Total exported bplists from notifications:" + str(exportedbplistcount))
98
+
99
+ tsvname = 'Notifications'
100
+ tsv (report_folder , data_headers , data_list , tsvname )
100
101
101
- tlactivity = 'Notifications'
102
- timeline (report_folder , tlactivity , data_list , data_headers )
103
- if len ( data_list ) == 0 :
102
+ tlactivity = 'Notifications'
103
+ timeline (report_folder , tlactivity , data_list , data_headers )
104
+ else :
104
105
logfunc ("No notifications found." )
105
106
106
107
__artifacts__ = {
0 commit comments