[Git][NTPsec/ntpsec][master] ntpclients/ntpviz.py: Fix handling of bad log data
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Thu Dec 2 19:35:56 UTC 2021
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
1f45ae46 by Gary E. Miller at 2021-12-02T11:30:45-08:00
ntpclients/ntpviz.py: Fix handling of bad log data
Improves on 5c423250b7049653b8fc212729a9d0e19bbf777d
- - - - -
1 changed file:
- ntpclients/ntpviz.py
Changes:
=====================================
ntpclients/ntpviz.py
=====================================
@@ -490,9 +490,10 @@ set rmargin 10
+ row[item2] + '\n'
last_time = row[0]
except IndexError:
- pass
+ continue
except ValueError:
- pass
+ continue
+ # both values are good, append them.
values1.append(val1)
values2.append(val2)
else:
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/1f45ae46f98d876268ff5e53e21fb0f6c5085037
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/1f45ae46f98d876268ff5e53e21fb0f6c5085037
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20211202/24f9dbd1/attachment.htm>
More information about the vc
mailing list