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:
cl349@firebug.cl.cam.ac.uk committed 2005-08-29 13:58:46 +00:00
1 parent 79bcde0dd2
commit 82e2e63c60
1 file changed
+2 -2
+2 -2
View File
@@ -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]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.