##// END OF EJS Templates
small change to is_binary function logic so it always skips the unicode conversions to perform this simple check
small change to is_binary function logic so it always skips the unicode conversions to perform this simple check

File last commit:

r1846:349a0ca3 beta
r3002:dec78aee beta
Show More
exceptions.py
13 lines | 246 B | text/x-python | PythonLexer
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.
"""