view rhodecode/lib/rcmail/exceptions.py @ 2326:405b1170f577 beta

fixed readme rendering bug. when there existed a directory named like dicovery file for readme, it crashed trying to read it's content. We just skip them now
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 22 May 2012 20:23:30 +0200
parents 349a0ca30a75
children
line wrap: on
line source



class InvalidMessage(RuntimeError):
    """
    Raised if message is missing vital headers, such
    as recipients or sender address.
    """


class BadHeaders(RuntimeError):
    """
    Raised if message contains newlines in headers.
    """