RUC-GSAI / YuLan-Rec

MIT License
247 stars 14 forks source link

original_event.target_agent is 'NoneType' #3

Closed LIUQI-creat closed 8 months ago

LIUQI-creat commented 8 months ago

Hi Thanks for your outstanding work! I am reproducing RecAgent and when it executes to round 4, I get the following error, how can I fix it?

NFO:9452:David Miller is going to social media.
Traceback (most recent call last):
File "D:\liuqi\LIUQI\yulan-recagent\YuLan-Rec\simulator.py", line 1219, in <module>
main()
File "D:\liuqi\LIUQI\yulan-recagent\YuLan-Rec\simulator.py", line 1210, in main
message = recagent.round()
File "D:\liuqi\LIUQI\yulan-recagent\YuLan-Rec\simulator.py", line 827, in round
msgs = self.one_step(i)
File "D:\liuqi\LIUQI\yulan-recagent\YuLan-Rec\simulator.py", line 607, in one_step
agent2.event = update_event(
File "D:\liuqi\LIUQI\yulan-recagent\YuLan-Rec\utils\event.py", line 39, in update_event
if target_agent in original_event.target_agent:
TypeError: argument of type 'NoneType' is not iterable
Paitesanshi commented 8 months ago

@LIUQI-creat Hi, we have addressed this bug in PR #4. You can pull the updated code and verify if the issue has been resolved. Thank you for bringing it to our attention.

LIUQI-creat commented 8 months ago

Thank you for the timely resolution! ^^