We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f772478 commit 9715b07Copy full SHA for 9715b07
vj4/handler/judge.py
@@ -202,7 +202,8 @@ async def close():
202
async def reset_record(rid):
203
rdoc = await record.end_judge(rid, self.user['_id'], self.id,
204
constant.record.STATUS_WAITING, 0, 0, 0)
205
- bus.publish_throttle('record_change', rdoc, rdoc['_id'])
+ if rdoc:
206
+ bus.publish_throttle('record_change', rdoc, rdoc['_id'])
207
208
await asyncio.gather(*[reset_record(rid) for rid in self.rids.values()])
209
await self.channel.close()
0 commit comments