From 02dbb6d120e44ec22cc7051251984cfd618e74ce Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 21 Oct 2008 13:59:08 -0700 Subject: [PATCH] Fix StopIteration exception during repo {sync,status} If we run out of entries next() will throw StopIteration. Signed-off-by: Shawn O. Pearce --- project.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/project.py b/project.py index df1e2647..d9591c40 100644 --- a/project.py +++ b/project.py @@ -920,8 +920,11 @@ class Project(object): if out: out = iter(out[:-1].split('\0')) while out: - info = out.next() - path = out.next() + try: + info = out.next() + path = out.next() + except StopIteration: + break class _Info(object): def __init__(self, path, omode, nmode, oid, nid, state):