diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2015-11-02 16:11:54 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2015-11-02 17:25:53 +0800 |
commit | 377fa4dfa142b0bc7e8be92e442199456993fe9d (patch) | |
tree | 790939e1131bdc1e26a49457af80b66cc1c9898f /tools/README | |
parent | 05d5ac8d6d5e9bd1e6b69afbd764000aeb4a030e (diff) |
Avoid the ValueError exception for a ping timeout.
In ping.py:
If ping a ip address timeout, the return value "stdout"
is null. And the code "rtt=float(stdout)" raises a
ValueError exception. The better handle is to avoid the
exception and log a ping timeout.
Change-Id: Ia2a3ff44c35dda1a700a5109f8e642a636e89bc6
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'tools/README')
0 files changed, 0 insertions, 0 deletions