From b81fd1b6c8a0589401061b44e546e92e32253733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Fri, 15 Nov 2024 11:29:11 +0800 Subject: [PATCH] fix --- py/LunaTranslator/myutils/commonbase.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/py/LunaTranslator/myutils/commonbase.py b/py/LunaTranslator/myutils/commonbase.py index 185a8262..ad948100 100644 --- a/py/LunaTranslator/myutils/commonbase.py +++ b/py/LunaTranslator/myutils/commonbase.py @@ -23,6 +23,10 @@ class maybejson: def __getattr__(self, t): return getattr(self._, t) + @property + def maybejson(self): + return str(self) + class proxysession(requests.Session): def __init__(self, _key1, _key2):