Invalid "level" arg, e.g. "--level states". ("state" is correct).
Old error:
UnboundLocalError: cannot access local variable 'region_list' where it is not associated with a value
New error:
ValueError: level 'states' is invalid
Invalid state given, e.g. " --state Alabamaa" instead of "Alabama"
Old error:
IndexError: index 0 is out of bounds for axis 0 with size 0
New error:
GIVEN STATE 'Alabamaa' NOT FOUND
Added better error message for two situations.
Invalid "level" arg, e.g. "--level states". ("state" is correct). Old error: UnboundLocalError: cannot access local variable 'region_list' where it is not associated with a value New error: ValueError: level 'states' is invalid
Invalid state given, e.g. " --state Alabamaa" instead of "Alabama" Old error: IndexError: index 0 is out of bounds for axis 0 with size 0 New error: GIVEN STATE 'Alabamaa' NOT FOUND