Skip to content

Commit

Permalink
Handle date-to-time actually failing (#180).
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Oct 12, 2016
1 parent f45deed commit 323cfe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elfeed-lib.el
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ be relative to now (`elfeed-time-duration')."
(if duration
(- (float-time) duration)
(let ((time (ignore-errors (date-to-time date))))
(if (equal time '(14445 17280)) ; date-to-time silently failed
nil
;; check if date-to-time failed, silently or otherwise
(unless (or (null time) (equal time '(14445 17280)))
(float-time time))))))))
(integer date)
(otherwise nil)))
Expand Down

0 comments on commit 323cfe4

Please sign in to comment.