On Wed, Dec 12, 2018 at 06:57:09AM -0600, Ravi Kumar wrote:
> I know this occurs when the api response is nulls but how do I handle this?
if response is None:
handle None case
else:
handle non-None case
--
Steve
___
Tutor maillist - Tutor@
Ravi Kumar wrote:
> Hi,
>
> I have developed a python script to get api calls for meraki
> clientlogevents Thanks for all the help previously I am facing few errors
> such as
>
> Json_string=r.json()
>
> raw_decode
> raise JSONDecodeError("Expecting value", s, err.value) from None
> json.d
On 12/12/2018 12:57, Ravi Kumar wrote:
> '{0:20} {1:30} {2:16} {3:18} {4:10} {5:11} '.format(
> deviceserial, type, macaddress,occurredAt, details))
> TypeError: unsupported format string passed to NoneType.__format__
You have 6 format holders in your string but you only
pass 5 values