# HG changeset patch # User Goffi # Date 1580292014 -3600 # Node ID d8a89a77d7658f683c355958c00b13715bb1d286 # Parent 559a625a236b3a8a570036225fb047f58f7092f7 core (xmpp): raise InternalError when a new profile Client is created while there is already one in host diff -r 559a625a236b -r d8a89a77d765 sat/core/xmpp.py --- a/sat/core/xmpp.py Wed Jan 29 10:07:00 2020 +0100 +++ b/sat/core/xmpp.py Wed Jan 29 11:00:14 2020 +0100 @@ -168,6 +168,9 @@ 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,