File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ async def process_filter_functions(
4949 function_module , _ , _ = load_function_module_by_id (filter_id )
5050 request .app .state .FUNCTIONS [filter_id ] = function_module
5151
52+ # Prepare handler function
53+ handler = getattr (function_module , filter_type , None )
54+ if not handler :
55+ continue
56+
5257 # Check if the function has a file_handler variable
5358 if filter_type == "inlet" and hasattr (function_module , "file_handler" ):
5459 skip_files = function_module .file_handler
@@ -60,10 +65,6 @@ async def process_filter_functions(
6065 ** (valves if valves else {})
6166 )
6267
63- # Prepare handler function
64- handler = getattr (function_module , filter_type , None )
65- if not handler :
66- continue
6768
6869 try :
6970 # Prepare parameters
You can’t perform that action at this time.
0 commit comments