From d79a3d87058988604cb457fed6aaed84eff2d9c2 Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sun, 6 May 2012 17:29:58 -0500 Subject: [PATCH] preserve exception in custom_import, thanks Mike Amy --- VERSION | 2 +- gluon/custom_import.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 39d02e35..7b61aeef 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-05-06 17:27:23) dev +Version 1.99.7 (2012-05-06 17:29:21) dev diff --git a/gluon/custom_import.py b/gluon/custom_import.py index 171a9724..a7281b60 100644 --- a/gluon/custom_import.py +++ b/gluon/custom_import.py @@ -128,8 +128,8 @@ class _DateTrackerImporter(_BaseImporter): # Module maybe loaded for the 1st time so we need to set the date self._update_dates(name, fromlist) return result - except Exception, e: - raise e # Don't hide something that went wrong + except Exception: + raise # Don't hide something that went wrong finally: if call_begin_end: self.end()