Fix #135391: Python type error reporting that addon is for newer version of Blender

This commits fixes a type error issue when reporting that a addon was
designed for a version of Blender newer than the current one.

Thanks to @Rakete for the fix.

Ref: !135392
This commit is contained in:
Alaska
2025-03-04 12:02:09 +11:00
committed by Campbell Barton
parent 72d89eee87
commit c30c19ad64

View File

@@ -496,11 +496,11 @@ class PREFERENCES_OT_addon_enable(Operator):
self.report(
{'WARNING'},
rpt_(
"This script was written Blender "
"This script was written for Blender "
"version {:d}.{:d}.{:d} and might not "
"function (correctly), "
"though it is enabled"
).format(info_ver)
).format(*info_ver)
)
result = {'FINISHED'}
else: