I also have this problem. Change line 78 to
pa_finish_logging(report)
and it appears to fix the problem.
I also have this problem. Change line 78 to
pa_finish_ logging( report)
and it appears to fix the problem.