From: Christian Heller Date: Mon, 10 Feb 2025 20:34:20 +0000 (+0100) Subject: Improve ModuleNotFoundError message. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/todos?a=commitdiff_plain;h=HEAD;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)