diff src/browser/sat_browser/jid.py @ 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 b38629924602
children 0a06cf833f5a
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()