Linbreux/wikmd

New local mode feature throws errors due to missing js directory

kura opened this issue · 0 comments

kura commented

When enabling the new local mode feature the container fails to start up due to a missing js directory.

[2022-08-25 18:55:04,926] INFO in web_dependencies: Downloading dependency https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js
[2022-08-25 18:55:05,167] INFO in web_dependencies: Writing dependency >>> /app/wikmd/static/js/bootstrap.bundle.min.js
Traceback (most recent call last):
  File "/app/wikmd/wiki.py", line 45, in <module>
    "web_deps": get_web_deps(cfg.local_mode, app.logger)
  File "/app/wikmd/web_dependencies.py", line 74, in get_web_deps
    download_web_deps(logger)
  File "/app/wikmd/web_dependencies.py", line 96, in download_web_deps
    with open(dep_file_path, "wb") as file: