AttributeError: 'Service' object has no attribute 'nickname'

Bug #357624 reported by Piotr Byzia
2
Affects Status Importance Assigned to Milestone
FriendFeed PyAPI
Fix Committed
Medium
Chris Lasher
0.2
New
Undecided
Unassigned

Bug Description

In [7]: session = friendfeed.FriendFeedAPI()
In [8]: byzia = session.get_user_profile('byzia')
In [9]: sample_service = byzia.services[4]
In [10]: sample_service
Out[10]: <Service Google Reader>
In [11]: user_service_feed = friendfeed.FriendFeedAPI.fetch_user_feed(session, byzia, sample_service)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)

/Users/piotr/Repos-experimental/friendfeed-pyapi/<ipython console> in <module>()

/Users/piotr/Repos-experimental/friendfeed-pyapi/friendfeed.pyc in fetch_user_feed(self, user, service, start, num)
   1682
   1683 return list(self.fetch_user_feed_iter(
-> 1684 user, service, start, num))
   1685
   1686

/Users/piotr/Repos-experimental/friendfeed-pyapi/friendfeed.pyc in fetch_user_feed_iter(self, user, service, start, num)
   1649 """
   1650
-> 1651 url_args = self._make_feed_args_dict(service, start, num)
   1652 nickname = self._get_user_nickname(user)
   1653 response = self._fetch('/feed/user/%s' % nickname,

/Users/piotr/Repos-experimental/friendfeed-pyapi/friendfeed.pyc in _make_feed_args_dict(self, service, start, num)
   1370 if service:
   1371 if isinstance(service, Service):
-> 1372 service = service.nickname
   1373 elif not isinstance(service, (str, (str, unicode))):
   1374 MSG = "service should be a Service instance or string"

AttributeError: 'Service' object has no attribute 'nickname'

Related branches

Revision history for this message
Chris Lasher (chris.lasher) wrote :

Thanks for your bug report. A fix is on the way.

Changed in friendfeed-pyapi:
assignee: nobody → chris.lasher
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Chris Lasher (chris.lasher) wrote :

Fix committed in r104 of trunk.

Changed in friendfeed-pyapi:
status: In Progress → Fix Committed
Revision history for this message
Piotr Byzia (piotr-byzia) wrote :

Thanks a lot Chris, that was quick :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.