Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fix

  • Loading branch information...
iperov committed Jun 2, 2019
1 parent c9da4cd commit ab8d03b4bb266eff0d2750ba14d2880498d316d2
Showing with 7 additions and 1 deletion.
  1. +7 −1 interact/interact.py
@@ -244,9 +244,15 @@ def input_str(self, s, default_value, valid_list=None, help_message=None):
print (help_message)
continue

if (valid_list is not None) and (inp.lower() not in valid_list):
if valid_list is not None:
if inp.lower() in valid_list:
return inp.lower()
if inp in valid_list:
return inp
return default_value

return inp

except:
print (default_value)
return default_value

0 comments on commit ab8d03b

Please sign in to comment.
You can’t perform that action at this time.