Commits

TK Soh committed 1764206

raise util.Abort in hunk.__cmp__

Comments (0)

Files changed (1)

             rhsattr = getattr(rhs, attr, None)
 
             if selfattr is None or rhsattr is None:
-                raise Exception("non-existant attribute %s" % attr)
+                raise util.Abort(_('non-existant attribute %s') % attr)
 
             rv = cmp(selfattr, rhsattr)
             if rv != 0: