diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/sbin/bcfg2-info | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 33bfc4349..fd1012925 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -207,10 +207,11 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core): else: raise ImportError except ImportError: - import bpython.cli - bpython.cli.main(locals_=locals()) - finally: - sh.interact() + try: + import bpython.cli + bpython.cli.main(locals_=locals()) + except ImportError: + sh.interact() def do_quit(self, _): """ |