mirror of https://github.com/CIRCL/lookyloo
fix: Mypy, docker
parent
41c7e87458
commit
147bc65992
|
@ -24,11 +24,7 @@ COPY README.md .
|
|||
RUN mkdir cache user_agents scraped
|
||||
|
||||
RUN echo LOOKYLOO_HOME="'`pwd`'" > .env
|
||||
RUN cp config/generic.json.sample config/generic.json
|
||||
RUN cp config/modules.json.sample config/modules.json
|
||||
RUN poetry install
|
||||
RUN poetry run playwright install
|
||||
RUN poetry run tools/validate_config_files.py --check
|
||||
RUN poetry run tools/validate_config_files.py --update
|
||||
RUN poetry run tools/3rdparty.py
|
||||
RUN poetry run tools/generate_sri.py
|
||||
|
|
|
@ -179,7 +179,7 @@ class AsyncCapture(AbstractManager):
|
|||
if 'error' in entries:
|
||||
with (dirpath / 'error.txt').open('w') as _error:
|
||||
json.dump(entries['error'], _error)
|
||||
return False, entries['error']
|
||||
return False, entries['error'] if entries['error'] else "Unknown error"
|
||||
|
||||
# The capture went fine
|
||||
harfile = entries['har']
|
||||
|
|
Loading…
Reference in New Issue