- def _onboard_event(self,timestamp,pirate,event):
- try: pa = self._pl[pirate]
- except KeyError: pa = None
- if pa is not None and pa.v is self._v:
+ def _onboard_event(self,v,timestamp,pirate,event):
+ pa = self._pl.get(pirate, None)
+ if pa is not None and pa.v is v: