My team uses Sentry
to track errors, and so I would prefer to not use Luigi's built-in email capabilities to keep all our reporting in one place.
This is how I have it currently set up, and it seems to be skipping Sentry entirely:
if __name__ == '__main__':
try:
luigi.run()
except Exception as e:
client = Client(
***
)
client.captureException(tags={
sys.argv[0]
})
logger.critical('Error occurred: {e}'.format(e=e))
raise