Catch KeyboardInterrupt, to avoid spewing error messages on Ctrl-C.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-11-01 15:57:19 +01:00
1 parent f8681f1674
commit c174bece23
1 file changed
+3
+3
View File
@@ -791,6 +791,9 @@ def main(argv=sys.argv):
else:
err("Error connecting to xend: %s. Is xend running?" % ex[1])
sys.exit(1)
except KeyboardInterrupt:
print "Interrupted."
sys.exit(1)
except IOError:
if os.geteuid() != 0:
err("Most commands need root access. Please try again as root.")
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.