adafruit / Adafruit_CircuitPython_NTP

Network Time Protocol (NTP) Helper for CircuitPython
MIT License
9 stars 18 forks source link

Improve doc for ntp.datetime access behavior and exceptions #24

Closed jdimpson closed 2 years ago

jdimpson commented 2 years ago

Added some words to the inline documentation about both how 1) accesses to ntp.datetime actually cause the NTP request to be sent, and therefore 2) accesses to ntp.datetime may throw an OSError exception, which should be caught and handled appropriately

askpatrickw commented 2 years ago

Looks good, ty!