Skip to content

Set up a Neptune error handling function#

Most Neptune errors inherit from the NeptuneException class.

If you want to activate a function when a Neptune exception is raised, try using the following in your function definition:

from neptune.exceptions import NeptuneException

...

try: 
    ...
except NeptuneException:
    ...

This way, you can set up your workflow to, for example, send a Slack notification when a Neptune error occurs.

Getting help