From 7dab7fbe66fb5a6db4d81139927f721cd527592d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 30 May 2025 21:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20transhandler.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/filemanager/transhandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filemanager/transhandler.py b/app/modules/filemanager/transhandler.py index d30bd77b..e0926ef2 100644 --- a/app/modules/filemanager/transhandler.py +++ b/app/modules/filemanager/transhandler.py @@ -62,7 +62,7 @@ class TransHandler: elif isinstance(current_value, bool): current_value = value elif isinstance(current_value, int): - current_value += value + current_value += (value or 0) else: current_value = value setattr(self.result, key, current_value)