Fix load .har files, add hardir to docker, add docs

This commit is contained in:
Heiner Lohaus 2024-03-26 21:45:53 +01:00
parent 95bab66dad
commit fd92918b77
6 changed files with 38 additions and 15 deletions

View file

@ -41,9 +41,9 @@ def readHAR():
if not harPath:
raise RuntimeError("No .har file found")
for path in harPath:
with open(path, 'r') as file:
with open(path, 'rb') as file:
try:
harFile = json.load(file)
harFile = json.loads(file.read())
except json.JSONDecodeError:
# Error: not a HAR file!
continue