changeset 497:aa90ea7778a5

fix issue with finally and python < 2.5
author Bjoern Ricks <bricks@intevation.de>
date Fri, 15 Oct 2010 15:39:34 +0000
parents d85af9a6c93a
children 1c8cc563ac80
files treepkg/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/util.py	Fri Oct 15 15:24:45 2010 +0000
+++ b/treepkg/util.py	Fri Oct 15 15:39:34 2010 +0000
@@ -71,9 +71,9 @@
                 version += "." + minor_match.group(1)
                 if patch_match:
                     version += "." + patch_match.group(1)
-    except: pass
-    finally:
         return version
+    except:
+        return ""
 
 def extract_configureac_version(configure_ac):
     match = re.match(r"m4_define\(\[?my_version\]?, \[([^]]+)\]\)",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)