diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 6b991b8c..ef0ef8a4 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -168,6 +168,9 @@ class SatXMPPEntity(object): password = yield host.memory.asyncGetParamA( "Password", "Connection", profile_key=profile ) + if profile in host.profiles: + raise exceptions.InternalError( + f"There is already a profile of name {profile} in host") entity = host.profiles[profile] = cls( host, profile, jid.JID(host.memory.getParamA("JabberID", "Connection", profile_key=profile)), password,