From the stack trace it is clear that _run_hook was called with ui=None (which is wrong). The followed back the call to at least: Report.add_hooks_info -> Report._add_hooks_info -> _run_hook
From the stack trace it is clear that _run_hook was called with ui=None (which is wrong). The followed back the call to at least: Report. add_hooks_ info -> Report. _add_hooks_ info -> _run_hook