From 492d069176cb3ea5761702991fd02fd4fbe97869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 15 Nov 2011 16:09:36 +0100 Subject: [PATCH] catch everything --- tabellio/icalimport/icalimport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tabellio/icalimport/icalimport.py b/tabellio/icalimport/icalimport.py index cc157a0..a787f61 100644 --- a/tabellio/icalimport/icalimport.py +++ b/tabellio/icalimport/icalimport.py @@ -38,7 +38,7 @@ class IcalImport(BrowserView): date_end = vevent.dtend.value if isinstance(date_end, datetime.date): date_end = datetime.datetime.fromordinal(date_end.toordinal()) - except AttributeError: + except: date_end = None event_id = self.plone_utils.normalizeString( '%04d-%02d-%02d-%s' % (date_start.year, @@ -53,11 +53,11 @@ class IcalImport(BrowserView): event.end = date_end try: event.description = vevent.description.value - except AttributeError: + except: pass try: event.location = vevent.location.value - except AttributeError: + except: pass try: self.portal_workflow.doActionFor(getattr(self.context, event_id), 'publish')