From c30c19ad6427be6cf4b834afe8a75cb3ab4e8a64 Mon Sep 17 00:00:00 2001 From: Alaska Date: Tue, 4 Mar 2025 12:02:09 +1100 Subject: [PATCH] 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 --- scripts/startup/bl_operators/userpref.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/startup/bl_operators/userpref.py b/scripts/startup/bl_operators/userpref.py index dcb0076f284..30b7e1d45d7 100644 --- a/scripts/startup/bl_operators/userpref.py +++ b/scripts/startup/bl_operators/userpref.py @@ -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: