2017-10-24 | Paul Boddie | raw files shortlog changelog graph | Fixed recurrence date iterator. | |
imiptools/data.py (file) |
1.1 --- a/imiptools/data.py Tue Oct 24 23:21:54 2017 +0200 1.2 +++ b/imiptools/data.py Tue Oct 24 23:24:41 2017 +0200 1.3 @@ -1278,7 +1278,7 @@ 1.4 1.5 # Return a sorted list of the periods. 1.6 1.7 - periods = list(MergingIterator([rule_periods, iter(rdates)])) 1.8 + periods = list(MergingIterator([rule_periods, iter(rdates or [])])) 1.9 1.10 # Exclude exception dates. 1.11