Skip to content

Commit

Permalink
Changes for pyparsing 3.1 log2timeline#4580
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Dec 18, 2023
1 parent 5ad7ce6 commit 76e2355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plaso/parsers/text_plugins/powershell_transcript.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def _ParseHeader(self, parser_mediator, text_reader):
structure, 'date_time')

try:
time_elements_structure = self._DATE_TIME.parse_string(date_time_structure)
time_elements_structure = self._DATE_TIME.parse_string(
date_time_structure)
except pyparsing.ParseException:
raise errors.ParseError('Unable to parse date time.')

Expand Down

0 comments on commit 76e2355

Please sign in to comment.