Open jdungan opened 7 years ago
Searches without street type cause this:
AttributeError at /lookup 'NoneType' object has no attribute 'upper' Request Method: POST Request URL: http://127.0.0.1:1985/lookup Django Version: 1.10.6 Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'upper' Exception Location: /Users/owner/projects/cft/tfd-preplan/tfdpreplan/utils.py in normalize_street_type, line 88 Python Executable: /Users/owner/projects/python_envs/preplan/bin/python Python Version: 2.7.5 Python Path: ['/Users/owner/projects/cft/tfd-preplan', '/Users/owner/projects/python_envs/preplan/lib/python27.zip', '/Users/owner/projects/python_envs/preplan/lib/python2.7', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-darwin', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-mac', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/owner/projects/python_envs/preplan/Extras/lib/python', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-tk', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-old', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/owner/projects/python_envs/preplan/lib/python2.7/site-packages'] Server time: Mon, 6 Mar 2017 14:10:07 +0000
App should catch the error and gently guide the user toward filling in the right type
With the addition of the form validation, is this still needed?
Searches without street type cause this:
AttributeError at /lookup 'NoneType' object has no attribute 'upper' Request Method: POST Request URL: http://127.0.0.1:1985/lookup Django Version: 1.10.6 Exception Type: AttributeError Exception Value: 'NoneType' object has no attribute 'upper' Exception Location: /Users/owner/projects/cft/tfd-preplan/tfdpreplan/utils.py in normalize_street_type, line 88 Python Executable: /Users/owner/projects/python_envs/preplan/bin/python Python Version: 2.7.5 Python Path: ['/Users/owner/projects/cft/tfd-preplan', '/Users/owner/projects/python_envs/preplan/lib/python27.zip', '/Users/owner/projects/python_envs/preplan/lib/python2.7', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-darwin', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-mac', '/Users/owner/projects/python_envs/preplan/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/owner/projects/python_envs/preplan/Extras/lib/python', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-tk', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-old', '/Users/owner/projects/python_envs/preplan/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/owner/projects/python_envs/preplan/lib/python2.7/site-packages'] Server time: Mon, 6 Mar 2017 14:10:07 +0000
App should catch the error and gently guide the user toward filling in the right type