Custom App hooks failing silently in Maya

Hi all!

I’ve created a custom app using the template starter app . I’ve implemented some hooks for it and then taken them over in our config.

My current issue as the title states is that when there’s an error in the hook it errors silently and gives no indication that something has gone wrong. I’ve even tried raising an Exception at the start of the hook and nothing ends up in the console within Maya.

I am calling the hooks like this:

            work_files_list = self._app.execute_hook(
                "hook_find_work_files",
                root_folder=os.path.dirname(work_path),
                extensions_filter=extensions_filter,
                work_template=self.template
            )

Is there something I have missed here with how to catch errors the sgtk way? Any help here would be appreciated, happy to share some more snips if its helpful but sadly cant share the entire thing.