From b1c5f511ff20972baa9a84eace437f31e29c6333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 28 Feb 2010 21:40:57 +0000 Subject: [PATCH] Do not print an empty exception message --- pisi-cli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi-cli b/pisi-cli index a6eb158c..44bc8f57 100755 --- a/pisi-cli +++ b/pisi-cli @@ -56,7 +56,9 @@ def handle_exception(exception, value, tb): if show_traceback: ui.error("%s: %s" % (exception, str(value))) else: - ui.error(str(value)) + msg = str(value) + if msg: + ui.error(msg) ui.info(_("Please use 'pisi help' for general help."))