fix: Pass proper path to the pickled dump

pull/79/head
Raphaël Vinot 2020-03-26 14:55:01 +01:00
parent f7896548f9
commit c322bc1b23
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class Lookyloo():
ct = CrawledTree(har_files)
with pickle_file.open('wb') as _p:
pickle.dump(ct, _p)
return pickle_file.name, ct.to_json(), ct.start_time.isoformat(), ct.user_agent, ct.root_url, meta
return str(pickle_file), ct.to_json(), ct.start_time.isoformat(), ct.user_agent, ct.root_url, meta
except Har2TreeError as e:
raise NoValidHarFile(e.message)