From 86b9753f30063955c3141d2c94dae1349644a5fc Mon Sep 17 00:00:00 2001 From: "hikari.ftg" Date: Mon, 21 Mar 2022 12:58:09 +0000 Subject: [PATCH] Add failed dependency to log --- hikka/__main__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hikka/__main__.py b/hikka/__main__.py index 3c629f2..c87387d 100755 --- a/hikka/__main__.py +++ b/hikka/__main__.py @@ -46,9 +46,10 @@ else: log.init() try: from . import main - except ModuleNotFoundError: # pragma: no cover + except ModuleNotFoundError as e: # pragma: no cover print( "Error: you have not installed all dependencies correctly.\n" + f"{str(e)}\n" "Attempting dependencies installation... Just wait." ) @@ -56,9 +57,10 @@ else: try: from . import main - except ModuleNotFoundError: + except ModuleNotFoundError as e2: print( "Error while installing dependencies. Please, do this manually!\n" + f"{str(e2)}\n" "pip3 install -r requirements.txt" )