Commit ba07eccc authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Dont print log message on valid show

parent 48c04eb9
...@@ -84,6 +84,9 @@ class BasePresence: ...@@ -84,6 +84,9 @@ class BasePresence:
@staticmethod @staticmethod
def _parse_show(stanza): def _parse_show(stanza):
show = stanza.getShow()
if show is None:
return PresenceShow.ONLINE
try: try:
return PresenceShow(stanza.getShow()) return PresenceShow(stanza.getShow())
except ValueError: except ValueError:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment