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

Class NoRegionErrorHandler

awscli/errorhandler.py:324–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323
324class NoRegionErrorHandler(FilteredExceptionHandler):
325 EXCEPTIONS_TO_HANDLE = NoRegionError
326 RC = CONFIGURATION_ERROR_RC
327
328 def _extract_error_info(self, exception):
329 message = (
330 f'{exception} You can also configure your region by running '
331 f'"aws configure".'
332 )
333 return {'Code': 'NoRegion', 'Message': message}
334
335
336class NoCredentialsErrorHandler(FilteredExceptionHandler):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected