home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d6ecc7
)
Improve ModuleNotFoundError message.
master
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 10 Feb 2025 20:34:20 +0000
(21:34 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 10 Feb 2025 20:34:20 +0000
(21:34 +0100)
src/run.py
patch
|
blob
|
history
diff --git
a/src/run.py
b/src/run.py
index d400e0e6b4b0bc3677eef1e22c67ecacc1c710c3..f3da3ebadacb22857b776fa70af1ee2511452389 100755
(executable)
--- a/
src/run.py
+++ b/
src/run.py
@@
-1,9
+1,9
@@
#!/usr/bin/env python3
"""Match command line calls to appropriate scripts."""
#!/usr/bin/env python3
"""Match command line calls to appropriate scripts."""
-#
include
d libs
+#
standar
d libs
from sys import argv, exit as sys_exit
from sys import argv, exit as sys_exit
-#
ourselve
s
+#
non-standard lib
s
try:
from ytplom.db import DbFile
from ytplom.primitives import HandledException
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:
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)
sys_exit(1)