kopia lustrzana https://github.com/corrscope/corrscope
Raise error when constructing Ovgen with 0 channels
rodzic
5c38445d56
commit
3c97c0dbcf
|
@ -97,6 +97,9 @@ class Ovgen:
|
|||
self.cfg = cfg
|
||||
self.has_played = False
|
||||
|
||||
if len(self.cfg.channels) == 0:
|
||||
raise ValueError('Config.channels is empty')
|
||||
|
||||
waves: List[Wave]
|
||||
channels: List[Channel]
|
||||
outputs: List[outputs.Output]
|
||||
|
|
Ładowanie…
Reference in New Issue