Changeset 1247


Ignore:
Timestamp:
Oct 25, 2008, 12:11:24 AM (13 years ago)
Author:
Dominic Hargreaves
Message:

Warn about errors fetching remote RSS feeds, but carry on generating the page content (fixes #228)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1245 r1247  
    2121        Don't add delete links unless the user requests (#159)
    2222        Fix clean target to remove everything it should (#242)
     23        Warn about errors fetching remote RSS feeds, but carry on
     24          generating the page content (#228)
    2325
    24260.63    16 August 2008
  • trunk/lib/OpenGuides/Utils.pm

    r1240 r1247  
    212212                    }
    213213
    214                     my $rss = Wiki::Toolkit::Plugin::RSS::Reader->new(url => $url);
     214                    # We can't do much about remote errors fetching
     215                    # at this stage
     216                    my $rss = eval { Wiki::Toolkit::Plugin::RSS::Reader->new(url => $url); };
     217                    if ( $@ ) {
     218                        warn $@;
     219                        return '';
     220                    }
    215221                    my @items = $rss->retrieve;
    216222
Note: See TracChangeset for help on using the changeset viewer.