Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 8aa2bb6

Browse files
committed
Merge pull request #6 from lamby/correct-sys-exit-usage
Correct exit code if number of errors % 256 == 0
2 parents b58ccc5 + 7325b8f commit 8aa2bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/contacts/unshare_profiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def main():
129129
for entry in result.error_entries:
130130
print ' > Failed to update %s: (%s) %s' % (
131131
entry.id.text, entry.batch_status.code, entry.batch_status.reason)
132-
sys.exit(result.error_count)
132+
sys.exit(0 if not result.error_count else 1)
133133

134134

135135
if __name__ == '__main__':

0 commit comments

Comments
 (0)