File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Wrapping/Generators/Python/itk/support Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -162,18 +162,18 @@ def itk_load_swig_module(name, namespace=None):
162
162
and current_value != template_container
163
163
):
164
164
debug_print_error (
165
- "Namespace already has a value for"
166
- " %s, which is not an itkTemplate"
167
- "instance for class %s. "
168
- "Overwriting old value."
169
- % (py_class_name , cpp_class_name )
165
+ f"Namespace already has a value for "
166
+ f"{ py_class_name } , which is not an itkTemplate "
167
+ f"instance for class { cpp_class_name } . "
168
+ f"Overwriting old value."
170
169
)
171
170
namespace [py_class_name ] = template_container
172
171
except Exception as e :
173
172
debug_print_error (
174
- "%s not loaded from module %s because of "
175
- "exception:\n %s" % ( swig_class_name , name , e )
173
+ f" { swig_class_name } not loaded from module { name } because of "
174
+ f "exception:\n { e } "
176
175
)
176
+ pass
177
177
178
178
else :
179
179
# this is a description of a non-templated class
You can’t perform that action at this time.
0 commit comments