Skip to content

Commit

Permalink
Merge pull request #78 from AzureCrimson/patch-1
Browse files Browse the repository at this point in the history
Make dmesg parsing non-UTF-tolerant
  • Loading branch information
xrmx authored Aug 9, 2020
2 parents 331ada0 + 13af822 commit 0ee59b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybootchartgui/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def _parse_dmesg(writer, file):
processMap['k-boot'] = kernel
base_ts = False
max_ts = 0
for line in file.read().decode('utf-8').split('\n'):
for line in file.read().decode('utf-8', 'replace').split('\n'):
t = timestamp_re.match (line)
if t is None:
# print "duff timestamp " + line
Expand Down

0 comments on commit 0ee59b5

Please sign in to comment.