Skip to content

Commit

Permalink
fix: jans-cli Error on utils when integer value and none (ref: #2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelwahabAdam committed Nov 5, 2022
1 parent a8a2c7d commit 8ade96c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jans-cli-tui/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_}

Expand Down

0 comments on commit 8ade96c

Please sign in to comment.