From 5f9d528f3ed89cbaab49eb78fd932301a4342687 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sat, 16 Dec 2023 00:01:29 +0100 Subject: [PATCH] dont exit on user error --- imgsort/globals.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imgsort/globals.py b/imgsort/globals.py index 5505987..1f374e9 100644 --- a/imgsort/globals.py +++ b/imgsort/globals.py @@ -13,9 +13,8 @@ def error(*args, exitcode=1, **kwargs): print("\033[31mError: \033[0m", *args, **kwargs) exit(exitcode) -def user_error(*args, exitcode=1, **kwargs): +def user_error(*args, **kwargs): print("\033[31mError: \033[0m", *args, **kwargs) - exit(exitcode) def warning(*args, **kwargs): print("\033[33mWarning: \033[0m", *args, **kwargs)