handling error
This commit is contained in:
		@ -131,7 +131,10 @@ class Command (BaseCommand):
 | 
				
			|||||||
            delay = options.get('delay') / 1000
 | 
					            delay = options.get('delay') / 1000
 | 
				
			||||||
            while True:
 | 
					            while True:
 | 
				
			||||||
                for controller in self.monitor.controllers.values():
 | 
					                for controller in self.monitor.controllers.values():
 | 
				
			||||||
                    controller.monitor()
 | 
					                    try:
 | 
				
			||||||
 | 
					                        controller.monitor()
 | 
				
			||||||
 | 
					                    except Exception as err:
 | 
				
			||||||
 | 
					                        print(err)
 | 
				
			||||||
                time.sleep(delay)
 | 
					                time.sleep(delay)
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user