vmm: minimal cleanups. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Sun, 21 Mar 2010 09:26:00 +0000
branchv0.6.x
changeset 232 3c766114d0b9
parent 230 eefbe052a135
child 233 55503d63ba30
vmm: minimal cleanups.
vmm
--- a/vmm	Wed Mar 03 20:54:18 2010 +0000
+++ b/vmm	Sun Mar 21 09:26:00 2010 +0000
@@ -381,18 +381,18 @@
         usage(EXIT.MISSING_ARGS, _(u'Missing alias address'))
     try:
         _printAliases(argv[2].lower(), vmm.aliasInfo(argv[2].lower()))
-    except VMME.VMMAliasException, e:
+    except VMME.VMMException, e:
         if e.code() is ERR.ACCOUNT_EXISTS:
             w_std(plan_a_b % {'subcommand': u'userinfo',
-                'object': argv[2].lower()})
+                              'object': argv[2].lower()})
             argv[1] = u'ui' # necessary manipulation to get the order
             user_info()
         elif e.code() is ERR.RELOCATED_EXISTS:
             w_std(plan_a_b % {'subcommand': u'relocatedinfo',
-                'object': argv[2].lower()})
+                              'object': argv[2].lower()})
             relocated_info()
         else:
-            raise e
+            raise
 
 def alias_delete():
     if argc < 3: