# Flickr.rb won't accept tags with only one photo

**URL:** <https://www.ruby-forum.com/t/flickr-rb-wont-accept-tags-with-only-one-photo/91643>\
**Category:** Rails\
**Created:** [April 11, 2007, 2:45am UTC](https://www.ruby-forum.com/t/flickr-rb-wont-accept-tags-with-only-one-photo/91643 "2007-04-11T02:45:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stegg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@Stegg](https://www.ruby-forum.com/u/Stegg)\
**Post date:** [April 11, 2007, 2:45am UTC](https://www.ruby-forum.com/t/flickr-rb-wont-accept-tags-with-only-one-photo/91643/1 "2007-04-11T02:45:35Z")

</div>

I have been playing around with flickr.rb for the photos section of my  
website, and it’s been going well except for one hitch. Whenever I  
try to grab the photos from my flickr acount by tag, and there is only  
one photo associated with that tag, I get a “Can’t convert String to  
Int” exception.

The code is as follows:

@photo\_test = @user.tag(‘tag\_with\_one\_photo’)

When I query with a tag for which there is only one photo, I get the  
exception. Otherwise, it works just fine. The exceptions are  
happening on line 103 of flickr.rb, so I think this may be a bug. If  
anyone knows anything about this or can help me out I would greatly  
appreciate it.
