REFACTOR Simplify a little bit of code
1 files changed, 1 insertions(+), 4 deletions(-)

M feed2maildir/converter.py
M feed2maildir/converter.py +1 -4
@@ 139,10 139,7 @@ Content-Type: text/plain
                         self.output('Oldtime : {} : Feedtime: {} : Link : {}'.format(oldtime,
                                                                                      feedtime,
                                                                                      post.link))
-                        try: # to append the post the the feed-list
-                            new[feedname].append(post)
-                        except: # it is the first one, make a new list
-                            new[feedname] = [post, ]
+                        new.setdefault(feedname, []).append(post)
 
             newtimes[feedname] = feedup.strftime('%Y-%m-%d %H:%M:%S %Z')
             self.output('Feedname : {} : Feedup : {}'.format(feedname, newtimes[feedname]))