This commit is contained in:
jxxghp
2023-08-08 13:40:09 +08:00
parent 3f8c5fbf48
commit 0210217d1e
3 changed files with 12 additions and 8 deletions

View File

@ -136,9 +136,9 @@ class WebHook(_PluginBase):
if not self._webhook_url:
return
def __to_dict(event):
def __to_dict(_event):
result = {}
for key, value in event.items():
for key, value in _event.items():
if hasattr(value, 'to_dict'):
result[key] = value.to_dict()
else: