diff options
-rw-r--r-- | pym/_emerge/actions.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index d5035cca9..9e2c88fe0 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1296,7 +1296,10 @@ def action_info(settings, trees, myopts, myfiles): for x in myvars: if x in settings: if x != "USE": - print('%s="%s"' % (x, settings[x])) + try: + print('%s="%s"' % (x, settings[x])) + except UnicodeEncodeError: + print('%s=<unprintable value with representation: %s>' % (x, repr(settings[x]))) else: use = set(settings["USE"].split()) for varname in use_expand: |