@cryptotaxi247 / netdata-1 / commits / 228e0098d

fix style

Wing924 committed Feb 23, 2018 at 12:08 UTC 228e0098d4088ec51a5039cb7398730a5ec89303
1 file changed +2 -4
python.d/springboot.chart.py
+2 -4
@@ -86,11 +86,9 @@ class Service(UrlService):
86 data['resp.' + key] = 0
87 for key, value in data.iteritems():
88 if 'counter.status.' in key:
89 - try:
90 - status_type = key[15:16] + 'xx'
91 - except:
89 + status_type = key[15:16] + 'xx'
90 + if status_type[0] not in '12345':
91 status_type = 'other'
93 -
92 data['resp.' + status_type] += value
93
94 return data or None