Added remove for unneeded file
	
		
			
	
		
	
	
		
	
		
			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:
		@@ -5,6 +5,7 @@ from sensor import SoundSensor
 | 
			
		||||
from sender import SoundSender
 | 
			
		||||
from preprocessor import SoundPreProcessor
 | 
			
		||||
from .abcsignalprocessor import AbcSignalProcessor
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver
 | 
			
		||||
 | 
			
		||||
@@ -43,6 +44,7 @@ class SoundSignalProcessor(AbcSignalProcessor):
 | 
			
		||||
        except Exception as e:
 | 
			
		||||
            logging.exception(e)
 | 
			
		||||
            BirbnetesIoTPlatformStatusDriver.enqueue_pattern('red', [1, 1, 1])
 | 
			
		||||
            os.unlink(soundsample_name)
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        if sample_decision:
 | 
			
		||||
@@ -53,4 +55,7 @@ class SoundSignalProcessor(AbcSignalProcessor):
 | 
			
		||||
        except (ConnectionError, requests.HTTPError) as e:
 | 
			
		||||
            logging.exception(e)
 | 
			
		||||
            BirbnetesIoTPlatformStatusDriver.enqueue_pattern('red', [1, 0, 1, 0, 1])
 | 
			
		||||
            os.unlink(soundsample_name)
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        os.unlink(soundsample_name)
 | 
			
		||||
		Reference in New Issue
	
	Block a user