server/schemaserial.py
changeset 8695 358d8bed9626
parent 7815 2a164a9cf81c
child 8748 f5027f8d2478
--- a/server/schemaserial.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/server/schemaserial.py	Thu Feb 14 15:38:25 2013 +0100
@@ -442,11 +442,11 @@
 def _ervalues(erschema):
     try:
         type_ = unicode(erschema.type)
-    except UnicodeDecodeError, e:
+    except UnicodeDecodeError as e:
         raise Exception("can't decode %s [was %s]" % (erschema.type, e))
     try:
         desc = unicode(erschema.description) or u''
-    except UnicodeDecodeError, e:
+    except UnicodeDecodeError as e:
         raise Exception("can't decode %s [was %s]" % (erschema.description, e))
     return {
         'name': type_,