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:
		@@ -39,6 +39,9 @@ class SoundSignalProcessor(AbcSignalProcessor):
 | 
			
		||||
        """
 | 
			
		||||
        soundsample_name = self.soundsensor.getvalue()
 | 
			
		||||
 | 
			
		||||
        if not soundsample_name:  # No new sample... nothing to do
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            sample_decision = self.soundpreprocessor.preprocesssignal(soundsample_name)
 | 
			
		||||
        except Exception as e:
 | 
			
		||||
@@ -58,4 +61,4 @@ class SoundSignalProcessor(AbcSignalProcessor):
 | 
			
		||||
            os.unlink(soundsample_name)
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        os.unlink(soundsample_name)
 | 
			
		||||
        os.unlink(soundsample_name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user