Launch brewhouse API is setting the brewhouse to active, but it's failing when watchers are attempting to send data. The next time the long poll reconnects, the controller, picks it up, but this breaks front end response handling, since the API returns an error rather than success code.
TypeError at /brewery/api/brewhouse/launch/
'NoneType' object is not iterable
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
response = get_response(request)
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
Launch brewhouse API is setting the brewhouse to active, but it's failing when watchers are attempting to send data. The next time the long poll reconnects, the controller, picks it up, but this breaks front end response handling, since the API returns an error rather than success code.
TypeError at /brewery/api/brewhouse/launch/ 'NoneType' object is not iterable
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/local/lib/python3.5/site-packages/django/views/decorators/csrf.py" in wrapped_view
File "/usr/local/lib/python3.5/site-packages/django/views/generic/base.py" in view
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py" in handle_exception
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py" in dispatch
File "/code/brewery/views.py" in post
File "/usr/local/lib/python3.5/site-packages/django/db/models/manager.py" in manager_method
File "/usr/local/lib/python3.5/site-packages/django/db/models/query.py" in create
File "/code/brewery/models.py" in save
File "/usr/local/lib/python3.5/site-packages/django/db/models/base.py" in save
File "/usr/local/lib/python3.5/site-packages/django/db/models/base.py" in save_base
File "/usr/local/lib/python3.5/site-packages/django/dispatch/dispatcher.py" in send
File "/code/tornado_sockets/views/recipe_instance.py" in recipe_instance_watcher
File "/code/tornado_sockets/views/recipe_instance.py" in notify
File "/usr/local/lib/python3.5/site-packages/tornado/concurrent.py" in set_result
File "/usr/local/lib/python3.5/site-packages/tornado/concurrent.py" in _set_done
Exception Type: TypeError at /brewery/api/brewhouse/launch/ Exception Value: 'NoneType' object is not iterable