From 8ade96c01815a5f056fc30d7cf88e4838257b942 Mon Sep 17 00:00:00 2001 From: AbdelwahabAdam Date: Sat, 5 Nov 2022 05:39:45 -0700 Subject: [PATCH] fix: jans-cli Error on utils when integer value and none (ref: #2866) --- jans-cli-tui/utils/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jans-cli-tui/utils/utils.py b/jans-cli-tui/utils/utils.py index 21cce5afcac..477c0a39f94 100755 --- a/jans-cli-tui/utils/utils.py +++ b/jans-cli-tui/utils/utils.py @@ -36,7 +36,8 @@ def get_item_data(self, item): return if getattr(me.window, 'text_type', None) == 'integer': - value_ = int(value_) + if value_: + value_ = int(value_) return {'key':key_, 'value':value_}