Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created October 5, 2013 19:33
Show Gist options
  • Save groovecoder/6845187 to your computer and use it in GitHub Desktop.
Save groovecoder/6845187 to your computer and use it in GitHub Desktop.
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