Fixed run on missing sample
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d4e6feb083
commit
876de01e3c
@ -39,6 +39,9 @@ class SoundSignalProcessor(AbcSignalProcessor):
|
|||||||
"""
|
"""
|
||||||
soundsample_name = self.soundsensor.getvalue()
|
soundsample_name = self.soundsensor.getvalue()
|
||||||
|
|
||||||
|
if not soundsample_name: # No new sample... nothing to do
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sample_decision = self.soundpreprocessor.preprocesssignal(soundsample_name)
|
sample_decision = self.soundpreprocessor.preprocesssignal(soundsample_name)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user