fix: Avoid exception when the update scripts requires a new dependency

Fix https://github.com/Lookyloo/lookyloo/issues/969
pull/986/head
Raphaël Vinot 2024-11-04 16:02:18 +01:00
parent aee2eb8daf
commit 6c3fa8074f
1 changed files with 7 additions and 1 deletions

View File

@ -10,7 +10,13 @@ import subprocess
import sys import sys
from pathlib import Path from pathlib import Path
from lookyloo.default import get_homedir, get_config try:
from lookyloo.default import get_homedir, get_config
except ImportError as e:
print(f'Unable to run the update script, it is probably due to a missing dependency: {e}')
print('Please run "poetry install" and try again.')
sys.exit()
logging.config.dictConfig(get_config('logging')) logging.config.dictConfig(get_config('logging'))