diff 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
line wrap: on
line diff
--- a/hgext/bugzilla.py	Wed Jul 14 22:59:57 2010 -0300
+++ b/hgext/bugzilla.py	Wed Jul 14 23:03:21 2010 -0300
@@ -437,5 +437,5 @@
                 bz.update(id, ctx)
             bz.notify(ids, util.email(ctx.user()))
     except MySQLdb.MySQLError, err:
-        raise util.Abort(_('database error: %s') % err[1])
+        raise util.Abort(_('database error: %s') % err.args[1])