show a prettier error page when the hub is offline
This commit is contained in:
parent
4ae00ba556
commit
cb39845ed3
1 changed files with 5 additions and 0 deletions
|
|
@ -342,6 +342,11 @@ class Dispatcher(object):
|
|||
values['tb_long'] = tb_long
|
||||
else:
|
||||
values['tb_long'] = "Full tracebacks disabled"
|
||||
# default these koji values to false so the _genHTML doesn't try to look
|
||||
# them up (which will fail badly if the hub is offline)
|
||||
# FIXME - we need a better fix for this
|
||||
environ['koji.values'].setdefault('mavenEnabled', False)
|
||||
environ['koji.values'].setdefault('winEnabled', False)
|
||||
result = _genHTML(environ, 'error.chtml')
|
||||
headers = [
|
||||
('Allow', 'GET, POST, HEAD'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue