[Git][NTPsec/ntpsec][master] Fix: TypeError: Unicode-objects must be encoded before hashing

Matt Selsky (@selsky) gitlab at mg.gitlab.com
Tue Dec 6 03:25:49 UTC 2022



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
e2f04730 by Michael Byczkowski at 2022-12-06T03:20:06+00:00
Fix: TypeError: Unicode-objects must be encoded before hashing
- - - - -


1 changed file:

- contrib/ntpheat


Changes:

=====================================
contrib/ntpheat
=====================================
@@ -75,7 +75,7 @@ while True:
     delta = temp_gate - temp
     if 0 < delta:
         # heat it up
-        m.update("Nobody inspects the spammish repetition")
+        m.update("Nobody inspects the spammish repetition".encode('utf-8'))
     else:
         cnt = max_cnt
         # cools off slower than it heats up.



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/e2f04730c031e9020793e5ad035453f69904bc0a
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/20221206/6ba254c7/attachment.htm>


More information about the vc mailing list