From e09c2ed8eb28cecde9d284a05f0765375695cb36 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 Jun 2019 15:30:32 -0400 Subject: [PATCH] Support more convoluted detail Some uefi settings details contain more tricky detail information. --- confluent_client/confluent/client.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/confluent_client/confluent/client.py b/confluent_client/confluent/client.py index 1d4f51e5..2c703421 100644 --- a/confluent_client/confluent/client.py +++ b/confluent_client/confluent/client.py @@ -478,11 +478,14 @@ def print_attrib_path(path, session, requestargs, options, rename=None): details = False if details: if currattr.get('help', None): - attrout += ' (Help: {0})'.format( - currattr['help'].encode('utf-8')) + attrout += u' (Help: {0})'.format( + currattr['help']) if currattr.get('possible', None): - attrout += u' (Choices: {0})'.format( - ','.join(currattr['possible'])) + try: + attrout += u' (Choices: {0})'.format( + ','.join(currattr['possible'])) + except TypeError: + pass cprint(attrout) if not exitcode: if requestargs: