#!/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)