Exception variable in 2.7 syntax

This commit is contained in:
Pedro M. Baeza
2014-08-21 02:10:01 +02:00
parent 42fdf1d77f
commit 76d4b6720b

View File

@@ -420,7 +420,7 @@ class AccountBankStatement(orm.Model):
self.create_move_from_st_line(
cr, uid, st_line.id, company_currency_id,
st_line_number, context)
except (orm.except_orm, osv.except_osv), exc:
except (orm.except_orm, osv.except_osv) as exc:
msg = "Line ID %s with ref %s had following error: %s" % (
st_line.id, st_line.ref, exc.value)
errors_stack.append(msg)