comparison hgext/bugzilla.py @ 11567:34cc8b84407f

removed exception args indexing (not supported by py3k) Py3k removed __getitem__ for exception classes. The correct way of getting the exception arguments is by using the args method.
author Renato Cunha <renatoc@gmail.com>
date Wed, 14 Jul 2010 23:03:21 -0300
parents 3062af0ba177
children 9c9fa78f4e2d
comparison
equal deleted inserted replaced
11566:4d11fde55cc5 11567:34cc8b84407f
435 if ids: 435 if ids:
436 for id in ids: 436 for id in ids:
437 bz.update(id, ctx) 437 bz.update(id, ctx)
438 bz.notify(ids, util.email(ctx.user())) 438 bz.notify(ids, util.email(ctx.user()))
439 except MySQLdb.MySQLError, err: 439 except MySQLdb.MySQLError, err:
440 raise util.Abort(_('database error: %s') % err[1]) 440 raise util.Abort(_('database error: %s') % err.args[1])
441 441