mirror of https://github.com/CIRCL/lookyloo
chg: better reporting for broken captures
parent
edd8d786d3
commit
8687d8fabf
|
@ -551,6 +551,8 @@ class Lookyloo():
|
|||
'''Get file(s) from the capture directory'''
|
||||
try:
|
||||
capture_dir = self._captures_index[capture_uuid].capture_dir
|
||||
except NoValidHarFile:
|
||||
return BytesIO(f'Capture {capture_uuid} has no HAR entries, which means it is broken.'.encode())
|
||||
except MissingUUID:
|
||||
return BytesIO(f'Capture {capture_uuid} not unavailable, try again later.'.encode())
|
||||
except MissingCaptureDirectory:
|
||||
|
|
Loading…
Reference in New Issue