[asterisk-users] ARI libraries?

Tony Mountifield
Sun, 21 Jul 2019 19:14:43 -0000

In article <fa813679-775a-b6c0-5b2a-4bfb2c117c48 at sysnux.pf>,
Jean-Denis Girard <jd.girard at sysnux.pf> wrote:
> Le 20/07/2019 à 12:21, Tony Mountifield a écrit :
> > What is the bug with channel variables? Do you have a fix for it?
>
> Channels variables caused an error, my fix is in aioswagger11/client.py
> (line 80) :
>                 elif param['paramType'] == 'body':
> <                    if not data:
> <                        data = {}
> <                    data[pname] = value
> >                    if isinstance(value, dict):
> >                        if data:
> >                            data.update(value)
> >                        else:
> >                            data = value
> >                    else:
> >                        raise TypeError("Parameters of type
'body'
> require dict input")
>
> I know, I should fork and make a pull request...

Great, thanks!

Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org