<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,6 @@
 import datetime
+from urllib2 import URLError
+
 from django import template
 from django.template.loader import render_to_string
 
@@ -15,14 +17,15 @@ class FFNode(template.Node):
     def user_feed(self, context):
         username_var = template.Variable(self.options['username'])
         username = username_var.resolve(context)
-
-        items = self.ff.fetch_user_feed(username)['entries']
-        items_requested = int(self.options.get('num_items', len(items)))
-        num_items = min(items_requested, len(items))
-
-        context['items'] = items[:num_items]
-        context['username'] = username
-
+	try:
+	    items = self.ff.fetch_user_feed(username)['entries']
+	    items_requested = int(self.options.get('num_items', len(items)))
+	    num_items = min(items_requested, len(items))
+	    context['items'] = items[:num_items]
+	    context['username'] = username
+	except URLError:
+	    context['items'] = []
+	    context['username'] = username
         return render_to_string(self.template_name, context)
 
 def do_ff_user_feed(parser, token):</diff>
      <filename>django_friendfeed/templatetags/fftags.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5ff291e86329ac4ec9227d5b945cad2e88bb6765</id>
    </parent>
  </parents>
  <author>
    <name>Christos Trochalakis</name>
    <email>yatiohi@ideopolis.gr</email>
  </author>
  <url>http://github.com/ctrochalakis/django-friendfeed/commit/55fbd041028e7da961bf86709a6de36e2f1d193b</url>
  <id>55fbd041028e7da961bf86709a6de36e2f1d193b</id>
  <committed-date>2009-10-21T03:32:37-07:00</committed-date>
  <authored-date>2009-10-21T03:32:37-07:00</authored-date>
  <message>Shallow URLError, quick hack because I am tired of Exception emails</message>
  <tree>253d891cf0e9542f39e66360cf4b185b22f6e1ab</tree>
  <committer>
    <name>Christos Trochalakis</name>
    <email>yatiohi@ideopolis.gr</email>
  </committer>
</commit>
