diff AddFeed.py @ 58:dcee24702dd7

Adding a feed now logs the exception if one occurred during retrieval. More normalization of feed entries before creating new FeedEntry objects.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 23 Jul 2010 17:24:32 +0200
parents 4b0d686493fb
children 510a5d00e98a
line wrap: on
line diff
--- a/AddFeed.py	Fri Jul 23 04:39:08 2010 +0200
+++ b/AddFeed.py	Fri Jul 23 17:24:32 2010 +0200
@@ -2,6 +2,7 @@
 from PyQt4 import QtGui
 from Ui_AddFeed import Ui_AddFeed
 import FeedUpdater
+import logging
 
 class AddFeed(QtGui.QDialog):
     def __init__(self, session):
@@ -17,6 +18,8 @@
             self.createFeed()
             self.session.commit()
         except AttributeError as ae:
+            logging.getLogger("AddFeed").info(ae)
+            
             self.exception = ae
             self.session.rollback()
         QtGui.QDialog.accept(self)