aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2007-09-25 09:36:50 +0000
committerAlistair Bush <ali_bush@gentoo.org>2007-09-25 09:36:50 +0000
commit46af2b9affcb07487157780626b53d35a612cab2 (patch)
treeeede737d68ce6bee19bfd42c577f9a46edb06b0a
parentAdd function needs_vm which will be used to determine whether this virtual is... (diff)
downloadjava-config-46af2b9affcb07487157780626b53d35a612cab2.tar.gz
java-config-46af2b9affcb07487157780626b53d35a612cab2.tar.bz2
java-config-46af2b9affcb07487157780626b53d35a612cab2.zip
Add back try-catch block.
svn path=/projects/java-config-2/branches/virtuals-support/; revision=5415
-rwxr-xr-xsrc/depend-java-query8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/depend-java-query b/src/depend-java-query
index b8464bb..30446cb 100755
--- a/src/depend-java-query
+++ b/src/depend-java-query
@@ -42,16 +42,16 @@ def is_sufficient(option, opt, value, parser):
sys.exit(1)
def get_vm(option, opt, value, parser):
- #try:
+ try:
if parser.values.need_virtual is not None:
vm = verman.get_vm(value, parser.values.need_virtual)
else:
vm = verman.get_vm(value)
printer._print(vm)
- #except Exception, ex:
- # printer._printError(str(ex))
- # sys.exit(1)
+ except Exception, ex:
+ printer._printError(str(ex))
+ sys.exit(1)
def get_lowest(option, opt, value, parse):
try: