Ignore exceptions in the get_all_methods call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2007-03-23 17:42:08 +00:00
1 parent 23feb407a1
commit d043ecebc5
1 file changed
+6 -3
+6 -3
View File
@@ -579,9 +579,12 @@ class Shell(cmd.Cmd):
cmd.Cmd.__init__(self)
self.prompt = "xm> "
if serverType == SERVER_XEN_API:
res = server.xenapi._UNSUPPORTED_list_all_methods()
for f in res:
setattr(Shell, 'do_' + f + ' ', self.default)
try:
res = server.xenapi._UNSUPPORTED_list_all_methods()
for f in res:
setattr(Shell, 'do_' + f + ' ', self.default)
except:
pass
def preloop(self):
cmd.Cmd.preloop(self)
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.