diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-10 11:08:28 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-10 11:08:28 -0700 |
commit | 537ce5973aef0c392be620d24993831812515df5 (patch) | |
tree | 7c4b9adfb1d2d5c2c1d5cdabdbd5b8a3091bc0df /mediagoblin/plugins/openid/views.py | |
parent | 05ceada051dad011bb9b3e1c93fb42b2d9875939 (diff) | |
download | mediagoblin-537ce5973aef0c392be620d24993831812515df5.tar.lz mediagoblin-537ce5973aef0c392be620d24993831812515df5.tar.xz mediagoblin-537ce5973aef0c392be620d24993831812515df5.zip |
need to use .get('messages') to not get a keyerror
Diffstat (limited to 'mediagoblin/plugins/openid/views.py')
-rw-r--r-- | mediagoblin/plugins/openid/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/plugins/openid/views.py b/mediagoblin/plugins/openid/views.py index 9566e38e..b639a4cb 100644 --- a/mediagoblin/plugins/openid/views.py +++ b/mediagoblin/plugins/openid/views.py @@ -342,7 +342,7 @@ def delete_openid(request): form.openid.errors.append( _('That OpenID is not registered to this account.')) - if not form.errors and not request.session['messages']: + if not form.errors and not request.session.get('messages'): # Okay to continue with deleting openid return_to = request.urlgen( 'mediagoblin.plugins.openid.finish_delete') |