Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ear/fileio/adm/elements/main_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
list_of,
)

import warnings


def _lookup_elements(adm, idRefs):
"""Lookup multiple ID references"""
Expand Down Expand Up @@ -461,8 +463,8 @@ def lazy_lookup_references(self, adm):
def validate(self, adm=None):
super(AudioStreamFormat, self).validate(adm=adm)
if self.audioPackFormat is not None and self.audioChannelFormat is not None:
raise AdmError("audioStreamFormat {self.id} has a reference to both an "
"audioPackFormat and an audioChannelFormat".format(self=self))
warnings.warn("audioStreamFormat {self.id} has a reference to both an "
"audioPackFormat and an audioChannelFormat".format(self=self))

if self.audioPackFormat is None and self.audioChannelFormat is None:
raise AdmError("audioStreamFormat {self.id} has no reference to an "
Expand Down