disco plugin: Fix traceback on unknown FORM_TYPE.
This commit is contained in:
parent
e649b46711
commit
30200c83ea
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Plugin(BasePlugin):
|
||||||
if field['type'] == 'hidden' and field['var'] == 'FORM_TYPE':
|
if field['type'] == 'hidden' and field['var'] == 'FORM_TYPE':
|
||||||
value = field['value']
|
value = field['value']
|
||||||
if 'http://jabber.org/network/serverinfo' not in 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
|
return
|
||||||
break
|
break
|
||||||
server_info = []
|
server_info = []
|
||||||
|
|
Loading…
Reference in a new issue