1.1 --- a/imiptools/client.py Sun Oct 15 21:34:23 2017 +0200
1.2 +++ b/imiptools/client.py Sun Oct 15 22:16:05 2017 +0200
1.3 @@ -804,12 +804,8 @@
1.4 if to_set:
1.5 self.obj.set_periods(to_set)
1.6
1.7 - # Exclude only the main period, if appropriate.
1.8 -
1.9 - if to_exclude:
1.10 - main = get_main_period(to_exclude)
1.11 - if main:
1.12 - self.obj.update_exceptions([main], [])
1.13 + if to_exclude:
1.14 + self.obj.update_exceptions(to_exclude, to_set or [])
1.15
1.16 # General message generation methods.
1.17