Created
October 5, 2013 19:33
-
-
Save groovecoder/6845187 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
doc._move_tree(new_slug, user=user) | |
except Exception as e: | |
message = """ | |
Page move failed. | |
Move was requested for document with slug %(slug)s in locale %(locale)s, | |
but could not be completed. The following error was raised: | |
%(info) | |
""" % {'slug': slug, 'locale': locale, 'info': e} | |
logging.error(message) | |
send_mail('Page move failed', message, settings.DEFAULT_FROM_EMAIL, | |
[user.email]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment