##// END OF EJS Templates
templates: use safer way to extract user_agent from request....
templates: use safer way to extract user_agent from request. Several reports were that user_agent was None causing a 500 while rendering template

File last commit:

r1:854a839a default
r2094:5efe3020 default
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.
"""