Py2.4 fix
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 21 Sep 2013 11:35:31 +0000 (13:35 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 21 Sep 2013 11:35:31 +0000 (13:35 +0200)
Cython/Build/Dependencies.py

index ec45a0e..b44cb7d 100644 (file)
@@ -801,12 +801,13 @@ if os.environ.get('XML_RESULTS'):
     compile_result_dir = os.environ['XML_RESULTS']
     def record_results(func):
         def with_record(*args):
+            t = time.time()
+            success = True
             try:
-                t = time.time()
-                success = True
-                func(*args)
-            except:
-                success = False
+                try:
+                    func(*args)
+                except:
+                    success = False
             finally:
                 t = time.time() - t
                 module = fully_qualifeid_name(args[0])