"Steve Longdo" <[EMAIL PROTECTED]> writes:

> I had that problem for a bit.  I would recommend going and getting
> your own flickr API key ( http://www.flickr.com/services/api/key.gne
> ).  I did that and replaced the value in the environment.rb file
> (last line in the file) with my key, the flickr photos returned and
> the prophecy was fulfilled ;-P

I think in this case it's something else; the problem was that I got a
bit eager moving stuff from application.rb to content_controller.rb
and moved something that the aggregator based sidebars depended on
and, because we'd made the mistake of doing:

   @flickr = 
     check_cache(FlickrAggregation, @sb_config['feed'] rescue nil

we weren't even logging the errors.

I wonder if there's a case for something like:

  def evaluate_and_log_error(failure_default = nil)
    begin
      yield
    rescue Exception => e
      logger.info e
      failure_default
    end
  end

and replacing all our 'rescue nil' entries with something along those lines.

-- 
Piers Cawley <[EMAIL PROTECTED]>
http://www.bofh.org.uk/
_______________________________________________
Typo-list mailing list
Typo-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/typo-list

Reply via email to