Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 6d9d8f72 by Philipp Hörist at 2019-03-06T22:19:59Z Dont allow setting invalid show values
- - - - -
1 changed file:
- nbxmpp/protocol.py
Changes:
===================================== nbxmpp/protocol.py ===================================== @@ -1261,6 +1261,8 @@ class Presence(Protocol): """ Set the show value of the message """ + if val not in ['away', 'chat', 'dnd', 'xa']: + raise ValueError('Invalid show value: %s' % val) self.setTagData('show', val)
def setStatus(self, val):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/6d9d8f722a7d247b7aa16ec80f0...