KeyError when modifying badges

(I can't publish links due to Karma, so I've shortened them in the code below)..... I am trying to modify a few badges from the 'admin' portal and when I click 'Save', I get the following:

KeyError at /admin/askbot/badgedata/34/
u'admin_guru'
Request Method: POST
Request URL ../admin/askbot/badgedata/34/
Django Version: 1.5.12
Exception Type: KeyError
Exception Value:    
u'admin_guru'
Exception Location: /usr/lib/python2.7/site-packages/askbot/models/badges.py in get_badge, line 981
Python Executable:  /usr/bin/python
Python Version: 2.7.5
Python Path:    
['/var/www/html/SpillBot',
 '/var/www/html/SpillBot/src/markdown2/lib',
 '/usr/lib64/python27.zip',
 '/usr/lib64/python2.7',
 '/usr/lib64/python2.7/plat-linux2',
 '/usr/lib64/python2.7/lib-tk',
 '/usr/lib64/python2.7/lib-old',
 '/usr/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7/site-packages',
 '/usr/lib64/python2.7/site-packages/gtk-2.0',
 '/usr/lib/python2.7/site-packages',
 '/usr/lib/python2.7/site-packages/askbot/deps']
Server time:    Wed, 29 Jul 2015 10:50:32 -0600

This also happens when I try to ADD a new one.

dharrah's avatar
21
dharrah
asked 2015-07-29 12:03:17 -0500
edit flag offensive 0 remove flag close merge delete

Comments

It is hard to reproduce as it is unclear which code has been modified on your side. I've tried changing parameters in the repository version and it worked.

Evgeny's avatar Evgeny (2015-08-07 12:05:48 -0500) edit

I haven't modified any of the stock code. All settings were modified through the Livesettings page. This only happens on the /admin section of the site (only place I see that allows modification of badges).

dharrah's avatar dharrah (2015-08-10 13:09:35 -0500) edit
add a comment see more comments