--- a/_exceptions.py Tue Mar 19 16:56:46 2013 +0100
+++ b/_exceptions.py Wed Mar 20 17:40:25 2013 +0100
@@ -1,4 +1,4 @@
-# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of CubicWeb.
@@ -19,7 +19,7 @@
__docformat__ = "restructuredtext en"
-from yams import ValidationError
+from yams import ValidationError as ValidationError
# abstract exceptions #########################################################
@@ -100,7 +100,7 @@
if self.args:
return ' '.join(self.args)
return self.msg
- except Exception, ex:
+ except Exception as ex:
return str(ex)
class Forbidden(SecurityError):