python - Get Fabric to email me when aborting -


i'm using fabric manage remote deployment of blog uses static site generator pelican. whenever drop new file in dropbox, use dropbox webhooks launch series of tasks on heroku server. tasks managed using fabric.

because done remotely, have manually inspect logs whenever realize went wrong. i'd fabric email me whenever aborts due error.

how can catch fabric abort can have send me email?

you can catch systemexit exception thrown failing task , send email in exception handling block.

see relevant topics:


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -