disco plugin: Fix traceback on unknown FORM_TYPE.

This commit is contained in:
Emmanuel Gil Peyrot 2017-12-19 16:12:08 +01:00
parent e649b46711
commit 30200c83ea

View file

@ -35,7 +35,7 @@ class Plugin(BasePlugin):
if field['type'] == 'hidden' and field['var'] == 'FORM_TYPE':
value = field['value']
if 'http://jabber.org/network/serverinfo' not in value:
self.api.error('Unknown form type “%s' % value, 'Form')
self.api.information('Unknown form type “%s' % value, 'Error')
return
break
server_info = []