diff --git a/swiftclient/shell.py b/swiftclient/shell.py index 07a7e527..619ec5c6 100755 --- a/swiftclient/shell.py +++ b/swiftclient/shell.py @@ -1304,9 +1304,7 @@ Examples: except (ClientException, RequestException, socket.error) as err: output.error(str(err)) - had_error = output.error_count > 0 - - if had_error: + if output.error_count > 0: exit(1)