mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix load .har files, add hardir to docker, add docs
This commit is contained in:
parent
95bab66dad
commit
fd92918b77
6 changed files with 38 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue