From: Christian Heller Date: Wed, 24 Sep 2025 12:28:54 +0000 (+0200) Subject: Add helper for handling exceptions on missing dependencies. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bpath_up_incl%7D%7D%7B%7B%20booking.id_%20%20%201%20%7D%7D?a=commitdiff_plain;p=plomlib Add helper for handling exceptions on missing dependencies. --- diff --git a/py/setup.py b/py/setup.py new file mode 100644 index 0000000..1070335 --- /dev/null +++ b/py/setup.py @@ -0,0 +1,8 @@ +"""Setup management.""" +from sys import exit as sys_exit + + +def dependency_hint(e: Exception) -> None: + 'Provide helpful advice on missing dependency exception.' + print(f'Missing dependency: {e}. Please run with "install_deps" argument.') + sys_exit(1)