Commits

ben...@localhost.metavers.net  committed fd3ef89

fix rss pb when you have no revisions

  • Participants
  • Parent commits b088b76

Comments (0)

Files changed (1)

File friendpaste/paste/views.py

     return results
 
 def get_snippet(id, rev=None):
-    revisions = None
+    revisions = {}
     res = _get_snippet_revisions(id)
     if not res:
         raise NotFound 
                 'updated':s.updated
         }    
     ))
-    
+ 
     for revision in revisions:
         s2, rev, old_rev, unidiff = get_changeset(id, rev=revision.value['revid'])
         feed.add_entry(RssFeedEntry(