summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/output.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py
index a7a500cd4..45def2b38 100644
--- a/pym/portage/output.py
+++ b/pym/portage/output.py
@@ -231,8 +231,11 @@ try:
parse_color_map(onerror=lambda e: writemsg("%s\n" % str(e), noiselevel=-1))
except FileNotFound:
pass
+except PermissionDenied, e:
+ writemsg("Permission denied: '%s'\n" % str(e), noiselevel=-1)
+ del e
except PortageException, e:
- writemsg("%s\n" % str(e))
+ writemsg("%s\n" % str(e), noiselevel=-1)
del e
def nc_len(mystr):