summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-06-01 14:24:15 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-06-01 14:24:15 -0400
commit5356f1451995dfefa64c42a77a64463e48601f5f (patch)
tree8328614dab782634df6085244cb63d1988a046ed /src
parent52d49d3d0e983cd043c79fd5f387e6d49975f9aa (diff)
downloadbcfg2-5356f1451995dfefa64c42a77a64463e48601f5f.tar.gz
bcfg2-5356f1451995dfefa64c42a77a64463e48601f5f.tar.bz2
bcfg2-5356f1451995dfefa64c42a77a64463e48601f5f.zip
py2.4 doesn't have finally; wrong logic, anyway
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-info9
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, _):
"""