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