Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#13188 closed Bug Report - Crash (fixed)
Datetime calculation error
Reported by: | Owned by: | Mark Spieth | |
---|---|---|---|
Priority: | minor | Milestone: | 29.1 |
Component: | Bindings - Python | Version: | v29.0 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
In requests_cache_compatability.py line 40 it fails:
self.cache.remove_old_entries(datetime.utcnow() - self._cache_expire_after)
as it aught to be:
self.cache.remove_old_entries(datetime.utcnow() - timedelta(self._cache_expire_after))
Attachments (1)
Change History (8)
comment:1 Changed 7 years ago by
comment:3 Changed 7 years ago by
Owner: | changed from Raymond Wagner to Mark Spieth |
---|---|
Status: | new → assigned |
Assigning to Mark as he did the update to ttvdb code.
comment:4 Changed 7 years ago by
The appended solution is not sufficient for all versions of requests_cache. It needs to check if its not a timedelta and then convert it if necessary to a timedelta with seconds= as the param. I have a patch ready but just need to test before I commit.
Changed 7 years ago by
Attachment: | expire_after.patch added |
---|
comment:5 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Original error message:
Pull request to solve problem: https://github.com/MythTV/mythtv/pull/162