Skip to content

Commit

Permalink
Merge pull request #120 from willkyu/main
Browse files Browse the repository at this point in the history
修正上个PR的bug
  • Loading branch information
lunzhiPenxil authored Mar 11, 2024
2 parents 8421c54 + 4cbddbc commit 31c8e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OlivOS/adapter/onebotV11/onebotSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def send_onebot_post_json(self):
try:
# clear_dict = {k: v for k, v in self.obj.__dict__.items() if v != -1}
clear_dict = self.obj.__dict__
if clear_dict['message_type']=='private':
if clear_dict.get('message_type')=='private':
clear_dict.pop('group_id','No "group_id"')
json_str_tmp = json.dumps(obj=clear_dict, ensure_ascii=False)
tmp_host = self.bot_info.host
Expand Down

0 comments on commit 31c8e9b

Please sign in to comment.