- if (
- not supports_discarded_packets
- and discarded_packets_have_default_clock_snapshots
- ):
- raise ValueError(
- 'cannot not support discarded packets, but have default clock snapshots for discarded packet messages'
- )
+ if discarded_packets_have_default_clock_snapshots:
+ if not supports_discarded_packets:
+ raise ValueError(
+ 'cannot not support discarded packets, but have default clock snapshots for discarded packet messages'
+ )
+
+ if default_clock_class is None:
+ raise ValueError(
+ 'cannot have no default clock class, but have default clock snapshots for discarded packet messages'
+ )