Mercurial > libervia-web
diff src/browser/sat_browser/contact.py @ 518:3d8e8f693576
browser_side: avoid some confusions between jid object 1. as an instance of JID or 2. as a str
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 02 Sep 2014 21:13:59 +0200 |
parents | db3436c85fb1 |
children | ee9c7bd266ad |
line wrap: on
line diff
--- a/src/browser/sat_browser/contact.py Tue Sep 02 21:08:59 2014 +0200 +++ b/src/browser/sat_browser/contact.py Tue Sep 02 21:13:59 2014 +0200 @@ -203,6 +203,7 @@ @param jid (str): JID of the contact @param name (str): optional name of the contact """ + assert(isinstance(jid, str)) if jid in self.contacts: return index = 0