cubicweb-mercurial-server #2824777 dont crash on user deletion [validation pending]

File "/home/auc/confs/simulagora/cubicweb/server/ssplanner.py", line 526, in execute
session.repo.glob_delete_entities(session, todelete)
File "/home/auc/confs/simulagora/cubicweb/server/repository.py", line 1500, in glob_delete_entities
self.hm.call_hooks('before_delete_entity', session, entities=entities)
File "/home/auc/confs/simulagora/cubicweb/server/hook.py", line 409, in call_hooks
registry.call_hooks(event, session, **kwargs)
File "/home/auc/confs/simulagora/cubicweb/server/hook.py", line 330, in call_hooks
hook()
File "/home/auc/confs/simulagora/cubes/mercurial_server/hooks.py", line 168, in __call__
schedule_key_sync(self._cw, event, self.entity.eid)
File "/home/auc/confs/simulagora/cubes/mercurial_server/hooks.py", line 156, in schedule_key_sync
(event, conf.eid, osp.join('keys', conf.keys_subdir, *key.pathtuple),
File "/home/auc/confs/simulagora/cubes/mercurial_server/entities.py", line 163, in pathtuple
return (self.reverse_public_key[0].login.encode('ascii'), str(self.eid))
IndexError: tuple index out of range

prioritynormal
typebug
done in0.2.1
load0.200
load left0.000
closed by#efd5fe231196 [hooks] on user deletion, remove everything that can (closes #2824777)
patch[hooks] on user deletion, remove everything that can (closes #2824777) [applied]