From 5acd4840903c7f290c1af7d6442e90bf4c0d19dd Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Tue, 19 Sep 2017 14:00:43 +0200 Subject: [PATCH] rpc: don't decode cookie_string if it's None This removes an ugly debug message from client installation Reviewed-By: Fraser Tweedale --- ipalib/rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 4b81e8997..0c2f98176 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -901,6 +901,8 @@ class RPCClient(Connectible): # (possibly with more than one cookie). try: cookie_string = read_persistent_client_session_data(principal) + if cookie_string is None: + return cookie_string = cookie_string.decode('utf-8') except Exception as e: logger.debug('Error reading client session data: %s', e)