[Git][NTPsec/ntpsec][master] intpclients/ntplogtemp.py: Catch renamed error.

Gary E. Miller gitlab at mg.gitlab.com
Fri Jun 5 18:50:05 UTC 2020



Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
4efd47be by Gary E. Miller at 2020-06-05T11:48:03-07:00
intpclients/ntplogtemp.py: Catch renamed error.

ValueError became TypeError.

- - - - -


1 changed file:

- ntpclients/ntplogtemp.py


Changes:

=====================================
ntpclients/ntplogtemp.py
=====================================
@@ -183,7 +183,7 @@ class Temper:
                 now = int(time.time())
                 data.append('%d %s %s' % (now, _device, temp))
                 break
-            except ValueError:
+            except (TypeError, ValueError):
                 # bad data, ignore it, for a bit
                 if args.verbose:
                     sys.stderr.write("TEMPer-poll failed\n")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/4efd47be329d9cde69999bd8e28ee9baed8ad3c8

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/4efd47be329d9cde69999bd8e28ee9baed8ad3c8
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/20200605/89c5c5d8/attachment.htm>


More information about the vc mailing list