更新 transhandler.py

This commit is contained in:
jxxghp
2025-05-30 21:42:50 +08:00
committed by GitHub
parent 62c06b6593
commit 7dab7fbe66

View File

@@ -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)