diff options
-rw-r--r-- | subcmds/sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 4a544706..d941ea07 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -218,7 +218,7 @@ later is required to fix a server side protocol bug. | |||
218 | for project in projects: | 218 | for project in projects: |
219 | # Check for any errors before starting any new threads. | 219 | # Check for any errors before starting any new threads. |
220 | # ...we'll let existing threads finish, though. | 220 | # ...we'll let existing threads finish, though. |
221 | if err_event.is_set(): | 221 | if err_event.isSet(): |
222 | break | 222 | break |
223 | 223 | ||
224 | sem.acquire() | 224 | sem.acquire() |
@@ -237,7 +237,7 @@ later is required to fix a server side protocol bug. | |||
237 | t.join() | 237 | t.join() |
238 | 238 | ||
239 | # If we saw an error, exit with code 1 so that other scripts can check. | 239 | # If we saw an error, exit with code 1 so that other scripts can check. |
240 | if err_event.is_set(): | 240 | if err_event.isSet(): |
241 | print >>sys.stderr, '\nerror: Exited sync due to fetch errors' | 241 | print >>sys.stderr, '\nerror: Exited sync due to fetch errors' |
242 | sys.exit(1) | 242 | sys.exit(1) |
243 | 243 | ||