Hi, Please review this patch. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1348446
Thanks Amol K
>From 8ec731ecade07c269c735401ba15619be88544b9 Mon Sep 17 00:00:00 2001 From: Amol Kahat <aka...@redhat.com> Date: Tue, 21 Jun 2016 13:45:06 +0530 Subject: [PATCH] Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1348446 --- base/common/python/pki/cli/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/common/python/pki/cli/__init__.py b/base/common/python/pki/cli/__init__.py index 3be9cce2e5583e2ee519cdb2860e6346f90426da..cae2b13d2792ef4620f8563a4ba2e8bd1851fae5 100644 --- a/base/common/python/pki/cli/__init__.py +++ b/base/common/python/pki/cli/__init__.py @@ -156,7 +156,7 @@ class CLI(object): (module, sub_command) = self.parse_command(command) if not module: - raise Exception('Invalid module "%s".' % command) + print('ERROR: Invalid module "%s".' % command) # Prepare module arguments. if sub_command: @@ -200,4 +200,5 @@ class CLI(object): (module, module_args) = self.parse_args(argv) - module.execute(module_args) + if module: + module.execute(module_args) -- 2.5.5
_______________________________________________ Pki-devel mailing list Pki-devel@redhat.com https://www.redhat.com/mailman/listinfo/pki-devel