MCPcopy Index your code
hub / github.com/aws/aws-cli / NoCredentialsErrorHandler

Class NoCredentialsErrorHandler

awscli/errorhandler.py:336–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336class NoCredentialsErrorHandler(FilteredExceptionHandler):
337 EXCEPTIONS_TO_HANDLE = NoCredentialsError
338 RC = CONFIGURATION_ERROR_RC
339
340 def _extract_error_info(self, exception):
341 message = (
342 f'{exception}. You can configure credentials '
343 f'by running "aws login".'
344 )
345 return {'Code': 'NoCredentials', 'Message': message}
346
347
348class PagerErrorHandler(FilteredExceptionHandler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected