Skip to content

Commit

Permalink
修复res为None时异常的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsf committed Nov 14, 2018
1 parent 1d0326f commit 0d618b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alive-ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def alive(step):
pool.join()

for res in result:
if res:
if res and res.get():
metrics.extend(res.get())
metric_handler.push_metrics(metrics)

Expand Down

0 comments on commit 0d618b8

Please sign in to comment.