Files @ 238486bb71ab
Branch filter:

Location: kallithea/rhodecode/lib/rcmail/exceptions.py

Marcin Kuzminski
Switched handling of RhodeCode extra params in consistent way
- use only os.environ for both hg and git
- hacking ui objects was bad
- os.environ allows easier to call rhodecode hooks externally


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.
    """