changeset 24306 | 6ddc86eedc3b |
parent 22411 | c497e39d81a3 |
child 24395 | 216fa1ba9993 |
--- a/hgext/convert/common.py Fri Mar 13 14:20:13 2015 -0400 +++ b/hgext/convert/common.py Fri Mar 13 17:00:06 2015 -0400 @@ -31,7 +31,10 @@ def checktool(exe, name=None, abort=True): name = name or exe if not util.findexe(exe): - exc = abort and util.Abort or MissingTool + if abort: + exc = util.Abort + else: + exc = MissingTool raise exc(_('cannot find required "%s" tool') % name) class NoRepo(Exception):