mirror of https://github.com/mvt-project/mvt.git
Ignoring decoding errors
This commit is contained in:
parent
5987f218be
commit
04225a4455
|
@ -43,7 +43,7 @@ class Accessibility(BugReportModule):
|
|||
|
||||
lines = []
|
||||
in_accessibility = False
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE accessibility:":
|
||||
in_accessibility = True
|
||||
continue
|
||||
|
|
|
@ -46,7 +46,7 @@ class Activities(BugReportModule):
|
|||
|
||||
lines = []
|
||||
in_package = False
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE package:":
|
||||
in_package = True
|
||||
continue
|
||||
|
|
|
@ -52,7 +52,7 @@ class BatteryDaily(BugReportModule):
|
|||
lines = []
|
||||
in_batterystats = False
|
||||
in_daily = False
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE batterystats:":
|
||||
in_batterystats = True
|
||||
continue
|
||||
|
|
|
@ -44,7 +44,7 @@ class BatteryHistory(BugReportModule):
|
|||
lines = []
|
||||
in_batterystats = False
|
||||
in_history = False
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "********** Print latest newbatterystats **********":
|
||||
in_batterystats = True
|
||||
continue
|
||||
|
|
|
@ -47,7 +47,7 @@ class DBInfo(BugReportModule):
|
|||
|
||||
in_dbinfo = False
|
||||
lines = []
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE dbinfo:":
|
||||
in_dbinfo = True
|
||||
continue
|
||||
|
|
|
@ -35,7 +35,7 @@ class Getprop(BugReportModule):
|
|||
|
||||
lines = []
|
||||
in_getprop = False
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "------ SYSTEM PROPERTIES (getprop) ------":
|
||||
in_getprop = True
|
||||
continue
|
||||
|
|
|
@ -95,7 +95,7 @@ class Packages(BugReportModule):
|
|||
in_package = False
|
||||
in_packages_list = False
|
||||
lines = []
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE package:":
|
||||
in_package = True
|
||||
continue
|
||||
|
|
|
@ -68,7 +68,7 @@ class Receivers(BugReportModule):
|
|||
|
||||
in_receivers = False
|
||||
lines = []
|
||||
for line in content.decode().splitlines():
|
||||
for line in content.decode(errors="ignore").splitlines():
|
||||
if line.strip() == "DUMP OF SERVICE package:":
|
||||
in_receivers = True
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue