phunt/zookeeper_dashboard — Issue #4: Error on initial page load
Author: clofresh
Created: 2011-12-16 16:44:22+00:00
State: open

After starting up the server, I get an error when I try to go to the site:

Environment:

Request Method: GET
Request URL: http://localhost:8000/

Django Version: 1.3.1
Python Version: 2.6.1
Installed Applications:
['django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'zookeeper_dashboard.zkadmin',
'zookeeper_dashboard.zktree']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')

Traceback:
File "/Users/carlo/Projects/datadog/python/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/views.py" in index
11. zkserver = ZKServer(server)
File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py" in __init__
41. self.sessions.append(Session(line.strip()))
File "/Users/carlo/Projects/datadog/zookeeper_dashboard/../zookeeper_dashboard/zkadmin/models.py" in __init__
13. self.host = m.group(1)

Exception Type: AttributeError at /
Exception Value: 'NoneType' object has no attribute 'group'