KeyError when modifying badges

asked 2015-07-29 12:03:17 -0600

dharrah gravatar image

(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/
Request Method: POST
Request URL ../admin/askbot/badgedata/34/
Django Version: 1.5.12
Exception Type: KeyError
Exception Value:    
Exception Location: /usr/lib/python2.7/site-packages/askbot/models/ in get_badge, line 981
Python Executable:  /usr/bin/python
Python Version: 2.7.5
Python Path:    
Server time:    Wed, 29 Jul 2015 10:50:32 -0600

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

edit retag flag offensive close merge delete


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 gravatar imageEvgeny ( 2015-08-07 12:05:48 -0600 )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 gravatar imagedharrah ( 2015-08-10 13:09:35 -0600 )edit