Alon Bar-Lev has uploaded a new change for review.

Change subject: dialog: cli: fix exception show
......................................................................

dialog: cli: fix exception show

Change-Id: I8d834ec974bdf7a0a40888da077f1d46cb2b03a9
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M ChangeLog
M src/plugins/otopi/dialog/cli.py
2 files changed, 7 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/19/19919/1

diff --git a/ChangeLog b/ChangeLog
index 7daf050..eb40350 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
  * core: support binary file transaction.
  * core: fix suppress environment variable logic.
  * core: log: add indirect filtering.
+ * dialog: cli: fix exception show.
  * packagers: yum: support disable transaction rollback.
  * network: firewalld: fix service deletion.
 
diff --git a/src/plugins/otopi/dialog/cli.py b/src/plugins/otopi/dialog/cli.py
index 1b46a7c..a9d0ae6 100644
--- a/src/plugins/otopi/dialog/cli.py
+++ b/src/plugins/otopi/dialog/cli.py
@@ -456,11 +456,12 @@
         elif args:
             self.logger.error(_("Syntax error"))
         else:
-            exceptionInfo = self.environment[constants.BaseEnv.EXCEPTION_INFO]
-            if exceptionInfo is not None:
-                self.dialog.note(
-                    text=traceback.format_exception(*exceptionInfo)
-                )
+            exceptionInfos = self.environment[constants.BaseEnv.EXCEPTION_INFO]
+            if exceptionInfos is not None:
+                for exceptionInfo in exceptionInfos:
+                    self.dialog.note(
+                        text=traceback.format_exception(*exceptionInfo)
+                    )
         return True
 
 


-- 
To view, visit http://gerrit.ovirt.org/19919
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d834ec974bdf7a0a40888da077f1d46cb2b03a9
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to