--- 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_,