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
Post a Comment