Mercurial > libervia-web
changeset 575:f8a355bede6a
browser_side (jid): remove JID constructor special error handling (it's better to get the full backtrace)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 13:54:13 +0200 |
parents | b07f0fe2763a |
children | daa9be94e88f |
files | src/browser/sat_browser/jid.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/jid.py Sat Oct 18 13:16:56 2014 +0200 +++ b/src/browser/sat_browser/jid.py Sat Oct 18 13:54:13 2014 +0200 @@ -25,11 +25,7 @@ """This class help manage JID (Node@Domaine/Resource)""" def __init__(self, jid): - try: - assert(isinstance(jid, str)) - except AssertionError: - raise AssertionError('Expected a string but got a %(class)s: %(inst)s' % - {'class': jid.__class__, 'inst': jid}) + assert(isinstance(jid, str)) self.__raw = str(JID.__normalize(jid)) self.__parse()