diff options
-rw-r--r-- | pym/portage_exception.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage_exception.py b/pym/portage_exception.py index 57eafb505..8791b2fd5 100644 --- a/pym/portage_exception.py +++ b/pym/portage_exception.py @@ -8,7 +8,10 @@ class PortageException(Exception): def __init__(self,value): self.value = value[:] def __str__(self): - return repr(self.value) + if isinstance(self.value, str): + return self.value + else: + return repr(self.value) class CorruptionError(PortageException): """Corruption indication""" |