pykolab/xml

Thomas Brüderli bruederli at kolabsys.com
Fri Feb 20 11:44:04 CET 2015


 pykolab/xml/event.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7585ff3d3d9e7b33c3c5f1f075aab97d704565e0
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Fri Feb 20 11:43:59 2015 +0100

    Don't attempt to update a None date

diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index dbe938c..51ab620 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -1305,7 +1305,7 @@ class Event(object):
             next_datetime = None
 
         # next_datetime is always a cdatetime, convert to date if necessary
-        if not isinstance(self.get_start(), datetime.datetime):
+        if next_datetime and not isinstance(self.get_start(), datetime.datetime):
             next_datetime = datetime.date(next_datetime.year, next_datetime.month, next_datetime.day)
 
         return next_datetime




More information about the commits mailing list