diff --git a/getnames.py b/getnames.py index 1fd7356..5c99906 100644 --- a/getnames.py +++ b/getnames.py @@ -101,11 +101,11 @@ def get_error_list(message): if len(lines) > 0: print("Received Request") - if lines[0].isnumeric() and int(lines[0]) > 1: + if lines[0].isnumeric() and int(lines[0]) > 0: name_list = get_name_list(int(lines[0]), consonants, single_vowels, double_vowels) else: print("ERROR: Non-number requested.") - name_list = ["ERROR: Invalid Requested"] + name_list = ["ERROR: Invalid Number Requested"] f = open('request.txt', 'w') f.write("") diff --git a/response.txt b/response.txt index e69de29..7ff34b5 100644 --- a/response.txt +++ b/response.txt @@ -0,0 +1 @@ +thethu \ No newline at end of file