lincolnloop/salmon

local variable 'latest_results' referenced before assignment

Closed this issue · 0 comments

Environment:

Request Method: GET
Request URL: http://salt.stack.local/

Django Version: 1.5.1
Python Version: 2.7.4
Installed Applications:
['salmon.core',
'salmon.apps.monitor',
'gunicorn',
'south',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/salmon-0.1.6_dev-py2.7.egg/salmon/apps/monitor/views.py" in dashboard
  2. for result in utils.get_latest_results():
    
    File "/usr/local/lib/python2.7/dist-packages/salmon-0.1.6_dev-py2.7.egg/salmon/apps/monitor/utils.py" in get_latest_results
  3. return latest_results
    

Exception Type: UnboundLocalError at /
Exception Value: local variable 'latest_results' referenced before assignment