[et-mgmt-tools] PATCH: koan: correction to exception handling in main()

Gavin Romig-Koch gavin at redhat.com
Tue Mar 11 14:02:24 UTC 2008


>
> If you can give me a specific traceback/error that it's not printing 
> (or is printing a string for), we can revisit this.
Well I ran into it when failing to initialize a Guest correctly, and 
triggered an exception deep in the bowels of virtinst (whine, whine, 
whine) , but you can see the same effect by adding the following line to 
koan/app.py:main()   (foo is left uninitialized).

                                                                                                 
-gavin...

diff --git a/koan/app.py b/koan/app.py
index 5c6ff6a..cb2f97b 100755
--- a/koan/app.py
+++ b/koan/app.py
@@ -169,6 +169,7 @@ def main():
         return 3
 
     try:
+        k = foo
         k = Koan()
         k.list_systems      = options.list_systems
         k.list_profiles     = options.list_profiles




More information about the et-mgmt-tools mailing list