diff options
author | Shawn O. Pearce <sop@google.com> | 2011-10-11 14:05:21 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-10-11 14:06:11 -0700 |
commit | df5ee52050a5b8ea4e0bb69c007dac556c18ec03 (patch) | |
tree | 760f85dcd1039e3ba6110d39cc041c664730e7cb /subcmds/sync.py | |
parent | fab96c68e3acfb5403ffe65577563f3cb39e2530 (diff) | |
download | git-repo-df5ee52050a5b8ea4e0bb69c007dac556c18ec03.tar.gz |
Fix Python 2.4 support
Change-Id: I89521ae52fa564f0d849cc51e71fee65b3c47bab
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 12 |
1 files changed, 4 insertions, 8 deletions
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. | |||
195 | 195 | ||
196 | fetched.add(project.gitdir) | 196 | fetched.add(project.gitdir) |
197 | pm.update() | 197 | pm.update() |
198 | except BaseException, e: | 198 | except _FetchError: |
199 | # Notify the _Fetch() function about all errors. | ||
200 | err_event.set() | 199 | err_event.set() |
201 | 200 | except: | |
202 | # If we got our own _FetchError, we don't want a stack trace. | 201 | err_event.set() |
203 | # However, if we got something else (something in Sync_NetworkHalf?), | 202 | raise |
204 | # we'd like one (so re-raise after we've set err_event). | ||
205 | if not isinstance(e, _FetchError): | ||
206 | raise | ||
207 | finally: | 203 | finally: |
208 | if did_lock: | 204 | if did_lock: |
209 | lock.release() | 205 | lock.release() |