buildframework/helium/tools/relnotes/relnotes.ant.xml
changeset 646 a010554f8551
parent 645 b8d81fa19e7d
--- a/buildframework/helium/tools/relnotes/relnotes.ant.xml	Fri Oct 08 21:02:28 2010 +0100
+++ b/buildframework/helium/tools/relnotes/relnotes.ant.xml	Mon Oct 11 11:16:47 2010 +0100
@@ -207,10 +207,7 @@
         print 'Error: ' + waroot + ' must be a synergy project and still be in database'
     else:
         project.setProperty("ccm.toplevel.project", str(cmproject))
-    session.close()
-except Exception, ex:
-    print 'Caught exception: ' + str(ex)
-    traceback.print_exc()
+finally:
     if session:
         session.close()
         </script>
@@ -230,10 +227,7 @@
     session = ccmutil.get_session(database, username, password, engine, dbpath)
     cmproject = session.create(ant.get_property(r'${ccm.toplevel.project}'))
     print cmproject.baseline
-    session.close()
-except Exception, ex:
-    print 'Caught exception: ' + str(ex)
-    traceback.print_exc()
+finally:
     if session:
         session.close()
         </hlm:python>