diff --git a/text_based.py b/text_based.py index 401036f..3a9266f 100755 --- a/text_based.py +++ b/text_based.py @@ -205,7 +205,7 @@ class Menu(): if result == '': if default is not None: return default - elif null_allowed + elif null_allowed: return False try: value = int(result)