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

index abd17094dbff903bec6b16acfca67b8b79d36fb8..c7fdad89ad9d86096b3946ff36154a0901d0f9ce 100755 (executable)
@@ -1,19 +1,18 @@
 #!/usr/bin/env python3
 """Viewer and editor for ledger .dat files."""
 
-# included libs
+# standard libs
 from datetime import date as dt_date
 from decimal import Decimal, InvalidOperation as DecimalInvalidOperation
 from os import environ
 from pathlib import Path
 from sys import exit as sys_exit
 from typing import Any, Optional, Self
-# might need module installation(s)
+# non-standard libs
 try:
     from plomlib.web import PlomHttpHandler, PlomHttpServer, PlomQueryMap
 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)