aPriori.DNS.check_input_stringΒΆ
- aPriori.DNS.check_input_string(input_string, valid_strings, input_name)ΒΆ
Checks if the value of input_string is contained in the list valid_strings. If the result is positive, returns None, if the result is negative raises an error
- Parameters:
input_string (string) β Is the string that must be checked
valid_strings (list of strings) β Is the list of valid strings
input_name (string) β Is the name of the parameter that we are checking
- Returns:
None
NOTES
ββ-
Example of output if the function finds an error
ValueError (Invalid parameter mode βmode1β. Valid options are:) β
mode_1
mode_2
mode_3