Skip to content

Commit bbdc9f8

Browse files
committed
fix if statement None check
1 parent 8229b0d commit bbdc9f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ def get_route_engine_metrics(registry, dev):
465465

466466
# time
467467
start_time = route_engine.find('start-time')
468-
if start_time:
468+
if start_time is not None:
469469
registry.add_metric('startTime', start_time.attrib['seconds'], meta)
470470
up_time = route_engine.find('up-time')
471-
if up_time:
471+
if up_time is not None:
472472
registry.add_metric('upTime', up_time.attrib['seconds'], meta)
473473

474474

0 commit comments

Comments
 (0)