File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1646,12 +1646,13 @@ def process_encode(self, value):
16461646
16471647 data = ScaleBytes (self .call_module ['index' ].get_used_bytes ())
16481648
1649- call_type_string = self .call_module ['calls' ].value_object .get_type_string ()
1650-
1651- call_obj = self .runtime_config .create_scale_object (call_type_string )
1649+ if self .call_module ['calls' ].value_object :
1650+ # Retrieve call function
1651+ call_type_string = self .call_module ['calls' ].value_object .get_type_string ()
1652+ call_obj = self .runtime_config .create_scale_object (call_type_string )
16521653
1653- # Retrieve used variant of call type
1654- self .call_function = call_obj .scale_info_type ['def' ][1 ].get_variant_by_name (value ['call_function' ])
1654+ # Retrieve used variant of call type
1655+ self .call_function = call_obj .scale_info_type ['def' ][1 ].get_variant_by_name (value ['call_function' ])
16551656
16561657 if not self .call_function :
16571658 raise ValueError (f"Call function '{ value ['call_module' ]} .{ value ['call_function' ]} ' not found" )
You can’t perform that action at this time.
0 commit comments