Code Repositories xandikos / 726a290
Raise KeyError rather than NotImplementedError for root page. This prevents a 500 error. Jelmer Vernooń≥ 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
550550 return render_jinja_page('root.html', accepted_content_languages)
551551
552552 def get_body(self):
553 raise NotImplementedError(self.get_body)
553 raise KeyError
554554
555555 def get_content_length(self):
556 raise NotImplementedError(self.get_content_length)
556 raise KeyError
557557
558558 def get_content_type(self):
559559 return 'text/html'