1.1 --- a/EventAggregatorSupport.py Sun Apr 10 18:28:16 2011 +0200
1.2 +++ b/EventAggregatorSupport.py Sun Apr 10 23:52:09 2011 +0200
1.3 @@ -1558,7 +1558,7 @@
1.4
1.5 # NOTE: Should perhaps catch ambiguous time problems elsewhere.
1.6
1.7 - if self.ambiguous() and start > end:
1.8 + if self.ambiguous() and self.start is not None and self.end is not None and start > end:
1.9 self.start, self.end = end, start
1.10
1.11 def __repr__(self):
1.12 @@ -1574,7 +1574,7 @@
1.13 return self.start, self.end
1.14
1.15 def ambiguous(self):
1.16 - return self.start.ambiguous() or self.end.ambiguous()
1.17 + return self.start is not None and self.start.ambiguous() or self.end is not None and self.end.ambiguous()
1.18
1.19 def convert(self, resolution):
1.20 return Timespan(*map(self._get_converter(resolution), self.as_limits()))