or just ...

    if not msg:
        msg = _('There was an error processing that request.')