[Git][gajim/python-nbxmpp][master] Dont print log message on valid show

Philipp Hörist gitlab at dev.gajim.org
Fri Jan 4 01:21:48 CET 2019


Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
ba07eccc by Philipp Hörist at 2019-01-04T00:21:16Z
Dont print log message on valid show

- - - - -


1 changed file:

- nbxmpp/modules/presence.py


Changes:

=====================================
nbxmpp/modules/presence.py
=====================================
@@ -84,6 +84,9 @@ class BasePresence:
 
     @staticmethod
     def _parse_show(stanza):
+        show = stanza.getShow()
+        if show is None:
+            return PresenceShow.ONLINE
         try:
             return PresenceShow(stanza.getShow())
         except ValueError:



View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ba07eccc070bdecb926ec600fa99b07b5dbf807d

-- 
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/ba07eccc070bdecb926ec600fa99b07b5dbf807d
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190104/9c3fc18c/attachment.html>


More information about the Commits mailing list