From df5ee52050a5b8ea4e0bb69c007dac556c18ec03 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 11 Oct 2011 14:05:21 -0700 Subject: Fix Python 2.4 support Change-Id: I89521ae52fa564f0d849cc51e71fee65b3c47bab Signed-off-by: Shawn O. Pearce --- subcmds/sync.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 244a560b..a3d06922 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -195,15 +195,11 @@ later is required to fix a server side protocol bug. fetched.add(project.gitdir) pm.update() - except BaseException, e: - # Notify the _Fetch() function about all errors. + except _FetchError: err_event.set() - - # If we got our own _FetchError, we don't want a stack trace. - # However, if we got something else (something in Sync_NetworkHalf?), - # we'd like one (so re-raise after we've set err_event). - if not isinstance(e, _FetchError): - raise + except: + err_event.set() + raise finally: if did_lock: lock.release() -- cgit v1.2.3-54-g00ecf