Merged in [16860] from rjsparks@nostrum.com:
Be resilient to statistics queries that provide a state but not a substate. Fixes #2813. - Legacy-Id: 16905 Note: SVN reference [16860] has been migrated to Git commit 654ae848f657957d2f7d259293ba523619d81cb5
This commit is contained in:
parent
fc2abcce20
commit
04e342b3ce
|
@ -1,4 +1,4 @@
|
|||
# Copyright The IETF Trust 2016, All Rights Reserved
|
||||
# Copyright The IETF Trust 2016-2019, All Rights Reserved
|
||||
|
||||
import copy
|
||||
import datetime
|
||||
|
@ -101,7 +101,10 @@ def make_title(queryargs):
|
|||
elif by == "state":
|
||||
state = queryargs.get('state')
|
||||
if state:
|
||||
title += ' in state %s::%s' % (state, queryargs['substate'])
|
||||
title += ' in state %s' % state
|
||||
substate = queryargs.get('substate')
|
||||
if substate:
|
||||
title += '::%s' % substate
|
||||
elif by == "stream":
|
||||
stream = queryargs.get('stream')
|
||||
if stream:
|
||||
|
|
Loading…
Reference in a new issue