From d85f24300e41f08ab4c348b7b3df8567a241eec2 Mon Sep 17 00:00:00 2001 From: Jerakin Date: Fri, 12 Dec 2025 12:14:37 +0100 Subject: [PATCH] Blender 2.83 compatibility fix --- bqt/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bqt/__init__.py b/bqt/__init__.py index 284d117..ea01af2 100644 --- a/bqt/__init__.py +++ b/bqt/__init__.py @@ -97,8 +97,11 @@ def setup_logger(): # print(f"BQT_LOG_LEVEL is set to '{log_level_name}'") log_level = logging.getLevelName(log_level_name) logger.setLevel(log_level) - logging.basicConfig(encoding='utf-8') - + if bpy.app.version >= (2, 93, 0): + # encoding argument was added in python 3.9 + logging.basicConfig(encoding='utf-8') + else: + logging.basicConfig() def register(): """