fix: Mypy, docker

pull/401/head
Raphaël Vinot 2022-04-26 00:59:57 +02:00
parent 41c7e87458
commit 147bc65992
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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']