Skip to content

Commit

Permalink
Changes to handling message file resource paths log2timeline#4259
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Dec 31, 2023
1 parent 13f7a99 commit 1195286
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plaso/formatters/winevt.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ def FormatEventValues(self, output_mediator, event_values):
message_string_template = self._winevt_resources_helper.GetMessageString(
provider_identifier, source_name, message_identifier, event_version)
if message_string_template:
string_values = []
for string_value in event_values.get('strings', []):
if string_value is None:
string_value = ''

string_values.append(string_value)
string_values = [
string or '' for string in event_values.get('strings', [])]

try:
message_string = message_string_template.format(*string_values)
Expand Down

0 comments on commit 1195286

Please sign in to comment.