From 8e04397b8cbb97e071b24aefeacb5d268daed3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos?= Date: Fri, 20 May 2016 13:52:04 +0200 Subject: [PATCH] Fix style issues --- senza/error_handling.py | 9 +++++---- senza/exceptions.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/senza/error_handling.py b/senza/error_handling.py index 1c0164b8..7e00d3b2 100644 --- a/senza/error_handling.py +++ b/senza/error_handling.py @@ -11,8 +11,8 @@ def store_exception(exception: Exception) -> str: """ tracebacks = format_exception(etype=type(exception), - value=exception, - tb=exception.__traceback__) # type: [str] + value=exception, + tb=exception.__traceback__) # type: [str] content = ''.join(tracebacks) @@ -40,7 +40,8 @@ def wrapper(): except ClientError as e: sys.stdout.flush() if is_credentials_expired_error(e): - print('AWS credentials have expired. Use the "mai" command line tool to get a new temporary access key.\n', + print('AWS credentials have expired.' + 'Use the "mai" command line tool to get a new temporary access key.', file=sys.stderr) sys.exit(1) else: @@ -55,4 +56,4 @@ def wrapper(): print('Unknown Error.\n' 'Please create an issue with the content of {fn}'.format(fn=file_name)) sys.exit(1) - return wrapper \ No newline at end of file + return wrapper diff --git a/senza/exceptions.py b/senza/exceptions.py index 2d9757cb..cd273771 100644 --- a/senza/exceptions.py +++ b/senza/exceptions.py @@ -10,4 +10,4 @@ class VPCError(SenzaException, AttributeError): """ def __init__(self, message): - super().__init__(message) \ No newline at end of file + super().__init__(message)