Opened 8 years ago
Closed 8 years ago
Last modified 8 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 by , 8 years ago
comment:3 by , 8 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Assigning to Mark as he did the update to ttvdb code.
comment:4 by , 8 years ago
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.
by , 8 years ago
| Attachment: | expire_after.patch added |
|---|
comment:5 by , 8 years ago
| 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