def _next_erepo(self): try: erepo = ERepo.get(ERepo._elaborated == False) except ERepo.DoesNotExist: erepo = None return erepo