plugins misc_account, misc_register_account: manually delete the sessions when not needed anymore

This commit is contained in:
souliane 2014-05-21 23:17:51 +02:00
commit ae45889d50

View file

@ -191,7 +191,7 @@ class Params(object):
elif return_profile_keys and profile_key in ["@ALL@"]:
return profile_key # this value must be managed by the caller
if not self.storage.hasProfile(profile_key):
log.error(_('Trying to access an unknown profile'))
log.error(_('Trying to access an unknown profile (%s)') % profile_key)
return "" # FIXME: raise exceptions.ProfileUnknownError here (must be well checked, this method is used in lot of places)
return profile_key