From 3ede9d6be1bafb706f0365dcddd67d01b188eb98 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 10 Feb 2025 21:34:20 +0100 Subject: [PATCH] Improve ModuleNotFoundError message. --- src/run.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) -- 2.30.2