# Custom App hooks failing silently in Maya

**URL:** <https://community.shotgridsoftware.com/t/custom-app-hooks-failing-silently-in-maya/13997>\
**Category:** Pipeline Integrations\
**Tags:** hooks\
**Created:** [November 16, 2021, 8:06am UTC](https://community.shotgridsoftware.com/t/custom-app-hooks-failing-silently-in-maya/13997 "2021-11-16T08:06:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Pedersen](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/justin_pedersen/32/5563_2.png) [@Justin\_Pedersen](https://community.shotgridsoftware.com/u/Justin_Pedersen)\
**Post date:** [November 16, 2021, 8:06am UTC](https://community.shotgridsoftware.com/t/custom-app-hooks-failing-silently-in-maya/13997/1 "2021-11-16T08:06:32Z")

</div>

Hi all!

I’ve created a custom app using the [template starter app](https://github.com/shotgunsoftware/tk-multi-starterapp) . 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:

```auto
            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.
