home · contact · privacy
Improve ModuleNotFoundError message. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2025 20:34:20 +0000 (21:34 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2025 20:34:20 +0000 (21:34 +0100)
src/run.py

index d400e0e6b4b0bc3677eef1e22c67ecacc1c710c3..f3da3ebadacb22857b776fa70af1ee2511452389 100755 (executable)
@@ -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)