mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix "bogus" check by moving it inside the length check.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
79bcde0dd2
commit
82e2e63c60
1 file changed
+2
-2
@@ -715,9 +715,9 @@ def main(argv=sys.argv):
|
||||
err("Most commands need root access. Please try again as root")
|
||||
sys.exit(1)
|
||||
except XendError, ex:
|
||||
if args[0] == "bogus":
|
||||
args.remove("bogus")
|
||||
if len(args) > 0:
|
||||
if args[0] == "bogus":
|
||||
args.remove("bogus")
|
||||
handle_xend_error(argv[1], args[0], ex)
|
||||
else:
|
||||
print "Unexpected error:", sys.exc_info()[0]
|
||||
|
||||