From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 10 Feb 2025 20:34:20 +0000 (+0100)
Subject: Improve ModuleNotFoundError message.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7Bprefix%7D%7D/booking/task?a=commitdiff_plain;h=3ede9d6be1bafb706f0365dcddd67d01b188eb98;p=ytplom

Improve ModuleNotFoundError message.
---

diff --git a/src/run.py b/src/run.py
index d400e0e..f3da3eb 100755
--- a/src/run.py
+++ b/src/run.py
@@ -1,9 +1,9 @@
 #!/usr/bin/env python3
 """Match command line calls to appropriate scripts."""
 
-# included libs
+# standard libs
 from sys import argv, exit as sys_exit
-# ourselves
+# non-standard libs
 try:
     from ytplom.db import DbFile
     from ytplom.primitives import HandledException
@@ -11,8 +11,7 @@ try:
     from ytplom.http import serve
     from ytplom.sync import sync
 except ModuleNotFoundError as e:
-    print('FAIL: Missing module(s), please run with "install_deps" argument.')
-    print(e)
+    print(f"Missing dependency: {e}. Please run with 'install_deps' argument.")
     sys_exit(1)