From b4b3c16984238039d3ea331b95208df1ce16b3ae Mon Sep 17 00:00:00 2001 From: Mustafa Baser Date: Mon, 28 Nov 2022 15:26:50 +0300 Subject: [PATCH] fix: jans-cli check existence of data when logout (ref: #3050) --- jans-cli-tui/cli_tui/plugins/999_jans/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jans-cli-tui/cli_tui/plugins/999_jans/main.py b/jans-cli-tui/cli_tui/plugins/999_jans/main.py index fd74ef8009c..bce9958198c 100755 --- a/jans-cli-tui/cli_tui/plugins/999_jans/main.py +++ b/jans-cli-tui/cli_tui/plugins/999_jans/main.py @@ -73,8 +73,8 @@ async def coroutine(): asyncio.ensure_future(coroutine()) - del config_cli.config['DEFAULT']['access_token_enc'] - del config_cli.config['DEFAULT']['user_data'] + config_cli.config['DEFAULT'].pop('access_token_enc', None) + config_cli.config['DEFAULT'].pop('user_data', None) config_cli.write_config() self.exit_cli()