do not fail looking for audio on event without commission
This commit is contained in:
parent
b1f0b3a33e
commit
cd7d298ea7
|
@ -6,6 +6,8 @@ import tabellio.config.utils
|
|||
|
||||
class CommissionView(ParlEventBaseView):
|
||||
def get_stream_name(self):
|
||||
if not self.context.commission:
|
||||
return 'XXXX'
|
||||
com_id = self.context.commission.to_path.split('/')[-1]
|
||||
com_audio_code = tabellio.config.utils.get_com_audio_code(com_id)
|
||||
filename = '%04d%02d%02d%02d-%s.mp3' % (
|
||||
|
|
Reference in New Issue