Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcs committed May 20, 2016
1 parent fc8e579 commit 8e04397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions senza/error_handling.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand All @@ -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
return wrapper
2 changes: 1 addition & 1 deletion senza/exceptions.py
Expand Up @@ -10,4 +10,4 @@ class VPCError(SenzaException, AttributeError):
"""

def __init__(self, message):
super().__init__(message)
super().__init__(message)

0 comments on commit 8e04397

Please sign in to comment.