mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 07:42:54 +00:00 
			
		
		
		
	TerminalEventHandler.handle_event() now logs instead of raising
This commit is contained in:
		@@ -1,3 +1,4 @@
 | 
			
		||||
import logging
 | 
			
		||||
from shutil import rmtree, copytree
 | 
			
		||||
from xmlrpc.client import Fault as SupervisorFault
 | 
			
		||||
 | 
			
		||||
@@ -19,7 +20,8 @@ class TerminadoEventHandler(EventHandlerBase, SupervisorMixin):
 | 
			
		||||
        self.supervisor.startProcess(self.process_name)
 | 
			
		||||
 | 
			
		||||
    def handle_event(self, anchor, data_json):
 | 
			
		||||
        raise NotImplementedError   # TODO: wat do?
 | 
			
		||||
        logging.debug('TerminadoEventHandler received event for anchor {}'.format(anchor))
 | 
			
		||||
        # TODO: wat do?
 | 
			
		||||
 | 
			
		||||
    def handle_reset(self, data_json):
 | 
			
		||||
        try: self.supervisor.stopProcess(self.process_name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user