File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
waveform_editor/tendencies Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def _setup_param(self, kwargs):
235235 except ValueError as error :
236236 # Fetch error and add to annotations
237237 error_msg = str (error )
238- match = re .search (r"'(\w+\.user_ \w+)'" , error_msg )
238+ match = re .search (r"'(\w+\.\w+)'" , error_msg )
239239 param_to_remove = match .group (1 )
240240 param_to_remove_no_class = param_to_remove .split ("." )[1 ]
241241 cleaned_error_msg = error_msg .replace (
@@ -248,7 +248,10 @@ def _setup_param(self, kwargs):
248248 is_warning = True ,
249249 )
250250 # Ignore keyword argument with ValueError
251- del kwargs [param_to_remove_no_class ]
251+ if param_to_remove_no_class in kwargs :
252+ kwargs .pop (param_to_remove_no_class )
253+ else :
254+ return
252255
253256 # Recursively retry with new kwargs
254257 self ._setup_param (kwargs )
You can’t perform that action at this time.
0 commit comments