[reddit] fix issue with datetime errors

pull/30/head
Mike Fährmann 7 years ago
parent 80c2e03aaa
commit 85696d0b3b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -238,7 +238,8 @@ class RedditAPI():
try:
ts = int(datetime.datetime.strptime(ts, fmt).timestamp())
except ValueError as exc:
self.warning("Unable to parse '%s': %s", key, exc)
self.log.warning("Unable to parse '%s': %s", key, exc)
ts = default
return ts
def _parse_id(self, key, default):

Loading…
Cancel
Save