PolicyStat/GitZen — pull request #31 by FriedRice (2013-05-29 14:26:09+00:00)
Title: Error when updating the cache with new data

I'm not sure exactly what the reproduction steps are, but I was working in gitzen and making a lot of changes today. Usually I just work from the page and don't reload it during a session, but I had made enough changes that I couldn't easily keep track of them in my head. Once I reloaded, I got this traceback (also, we should probably disable debug on our policystat environment and add error email sending):

```
Environment:

Request Method: GET
Request URL: foo/home/

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'gitzen.enhancement_tracking']
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',
'django.middleware.gzip.GZipMiddleware')

Traceback:
File "/app/.heroku/venv/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/app/.heroku/venv/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "/app/gitzen/enhancement_tracking/views.py" in home
426. update_cache_index(api_access_data)
File "/app/gitzen/enhancement_tracking/cache_actions.py" in update_cache_index
437. cache_data['git_issue_numbers'].extend(new_issue_numbers)

Exception Type: AttributeError at /home/
Exception Value: 'set' object has no attribute 'extend'

```