Skip to content

Commit

Permalink
Fix default for string
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Aug 24, 2023
1 parent 03a5deb commit d99b676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jarvis_util/introspect/system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _ask_string(self, msg, default=None):
x = input(f'{msg}: ')
else:
x = input(f'{msg} (Default: {default}): ')
if x is None:
if len(x) == 0:
x = default
return x

Expand Down

0 comments on commit d99b676

Please sign in to comment.