Custom Schedule Error in format of executor if query report has data

Custom Schedule Error in format of executor if query report has data

I am facing an error : Error in format of executor when a custom schedule I created executes on a query report that has data or return a list of records. But when the query report has no data the custom schedule executes successfully. Please help. 

I have attached the python script.


                  New to ADSelfService Plus?