X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Faccountview.py;h=dfda18267ae546c24581a58ace363f49c51e61c4;hb=963600348f98d1c2c98d49b88084c094ff3ccb9b;hp=264948ace99b00ff0f26824b88d51372771fc63c;hpb=5c6d3dfae3a4aed1a18a9f1a946655631328351d;p=unfold.git diff --git a/portal/accountview.py b/portal/accountview.py index 264948ac..dfda1826 100644 --- a/portal/accountview.py +++ b/portal/accountview.py @@ -418,7 +418,6 @@ def account_process(request): sfa_update_user(request, user_hrn, user_pub_key) result_sfa_user = sfa_get_user(request, user_hrn, public_key) try: - result_sfa_user = result_sfa_user[0] if 'keys' in result_sfa_user and result_sfa_user['keys'][0] == public_key: # updating manifold updated_config = json.dumps(account_config) @@ -427,7 +426,7 @@ def account_process(request): messages.success(request, 'Sucess: New Keypair Generated! Delegation of your credentials will be automatic.') else: raise Exception,"Keys are not matching" - except Exception,e: + except Exception, e: messages.error(request, 'Error: An error occured during the update of your public key at the Registry, or your public key is not matching the one stored.') print "Exception in accountview ", e return HttpResponseRedirect("/portal/account/")