> One fix, which I think is compatible, would be:
> value = property(...)
I like it better, too. Works fine in my test setup,
no need to touch exception2msg().
# Have our own custom .value with all the mirror errors.
class NoMoreMirrorsRepoError(RepoError):
def __init__(self, value=None, errors=None):
Exception.__init__(self)
self._value = value
self.errors = errors
@property
def value(self):
ret = self._value
for url, msg in self.errors or []:
ret += '\n%s: %s' % (url, msg)
return ret
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel