diff options
Diffstat (limited to 'sleekxmpp/stanza/htmlim.py')
-rw-r--r-- | sleekxmpp/stanza/htmlim.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/stanza/htmlim.py b/sleekxmpp/stanza/htmlim.py index f9ee985f..60686e4a 100644 --- a/sleekxmpp/stanza/htmlim.py +++ b/sleekxmpp/stanza/htmlim.py @@ -31,4 +31,5 @@ class HTMLIM(ElementBase): return html def delHtml(self): - return self.__del__() + if self.parent is not None: + self.parent().xml.remove(self.xml) |