Gnus development mailing list
 help / color / mirror / Atom feed
* PATCH:  Make nnrss fail gracefully when it can't fetch a feed
@ 2005-12-21 17:57 Mark Plaksin
  2005-12-21 18:28 ` Mark Plaksin
  2005-12-22  3:38 ` Katsumi Yamaoka
  0 siblings, 2 replies; 7+ messages in thread
From: Mark Plaksin @ 2005-12-21 17:57 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

When nnrss can't fetch a feed an error is signalled.  This patch makes
nnrss print a warning instead.

When you use 'g' from the Group buffer, the current behavior prevents the
rest of your feeds from being checked.  The root cause is the use of
`(error)' in mm-url-insert-file-contents-external.  This patch just adds a
condition-case in nnrss.el.

I don't know whether I used the right -message function.  What's the
difference between nnheader-message and gnus-message?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnrss.el --]
[-- Type: text/x-patch, Size: 569 bytes --]

--- nnrss.el.orig	2005-12-21 12:43:03.000000000 -0500
+++ nnrss.el	2005-12-21 12:43:13.000000000 -0500
@@ -380,7 +380,9 @@
 	;; FIXME: shouldn't binding `coding-system-for-read' be moved
 	;; to `mm-url-insert'?
 	(let ((coding-system-for-read 'binary))
-	  (mm-url-insert url)))
+          (condition-case nil
+              (mm-url-insert url)
+            (error (nnheader-message 3 "nnrss: Failed to fetch %s" url)))))
       (nnheader-remove-cr-followed-by-lf)
       ;; Decode text according to the encoding attribute.
       (when (setq cs (nnrss-get-encoding))

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-01  6:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 17:57 PATCH: Make nnrss fail gracefully when it can't fetch a feed Mark Plaksin
2005-12-21 18:28 ` Mark Plaksin
2005-12-22  3:38 ` Katsumi Yamaoka
2005-12-22 13:50   ` Mark Plaksin
2005-12-22 14:49     ` Katsumi Yamaoka
2005-12-31 15:49       ` Mark Plaksin
2006-01-01  6:46         ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).