Error creating new user wazo-ui

Hi everyone,
I have the wazo version 20.07 installed and when I try to create a user it is not saved.

I check the log and it shows the following.

2020-05-28 13:53:37,791 [533] (ERROR) (wazo_ui.errors): Unexpected error:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3/dist-packages/", line 231, in proxy
    response = view(**request.view_args)
  File "/usr/lib/python3/dist-packages/flask_login/", line 261, in decorated_view
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/", line 202, in inner
    return fn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_ui/helpers/", line 251, in post
    resources = self._map_form_to_resources_post(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/", line 230, in _map_form_to_resources_post
    return self._map_form_to_resources(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/", line 237, in _map_form_to_resources
    resource['lines'] = self._map_form_to_resource_line(form)
  File "/usr/lib/python3/dist-packages/wazo_ui/plugins/user/", line 299, in _map_form_to_resource_line
    if line['registrar']:
KeyError: 'registrar'

If they have any clue that it may be what is failing or it is a bug in wazo-ui.

Thank you very much for the help.

Hello. The solution was already posted in French so I just try to translate here:

It’s a bug. While waiting for the update it is solvable by modifying the following file: /usr/lib/python3/dist-packages/wazo_ui/plugins/user/

And line 299 of the file you have to modify this:

if line['registrar']:

To this:

if line.get('registrar'):

Then you have to reboot the machine.

Works correctly. Thank you