| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report
@@ Coverage Diff @@
## main #466 +/- ##
==========================================
+ Coverage 87.80% 87.84% +0.03%
==========================================
Files 5 5
Lines 730 732 +2
==========================================
+ Hits 641 643 +2
Misses 89 89
Continue to review full report at Codecov.
|
Sorry, something went wrong.
…time without tzinfo
|
Addressed your comment in this new commit – it now respects the default function. The logic is getting a little twisted, though. If you don't think it's worth it for such a minor convenience, I understand. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
When attempting to pack a datetime.datetime object with msgpack.packb(dt, datetime=True) where the dt object is missing tzinfo, the library throws the generic error TypeError: can not serialize 'datetime.datetime' object.
That threw me off as I thought the problem related to datetime=True, and didn't realise I was missing tzinfo. This small patch outputs a more specific error message for that edge case.