From 947e26ce1b5873c5cfb1065d884bee4727fe4a2f Mon Sep 17 00:00:00 2001 From: acsbendi Date: Tue, 9 Jul 2019 19:46:04 +0200 Subject: [PATCH] Removed unused exception. --- moto/core/authentication.py | 2 +- moto/core/exceptions.py | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/moto/core/authentication.py b/moto/core/authentication.py index 88e1b6b42..54f33b739 100644 --- a/moto/core/authentication.py +++ b/moto/core/authentication.py @@ -10,7 +10,7 @@ from six import string_types from moto.iam.models import ACCOUNT_ID, Policy from moto.iam import iam_backend -from moto.core.exceptions import SignatureDoesNotMatchError, AccessDeniedError, InvalidClientTokenIdError, InvalidAccessKeyIdError, AuthFailureError +from moto.core.exceptions import SignatureDoesNotMatchError, AccessDeniedError, InvalidClientTokenIdError, AuthFailureError from moto.s3.exceptions import BucketAccessDeniedError, S3AccessDeniedError, BucketInvalidTokenError, S3InvalidTokenError, S3InvalidAccessKeyIdError, BucketInvalidAccessKeyIdError from moto.sts import sts_backend diff --git a/moto/core/exceptions.py b/moto/core/exceptions.py index e18797fa4..58db5ed78 100644 --- a/moto/core/exceptions.py +++ b/moto/core/exceptions.py @@ -97,15 +97,6 @@ class AccessDeniedError(RESTError): )) -class InvalidAccessKeyIdError(RESTError): - code = 400 - - def __init__(self): - super(InvalidAccessKeyIdError, self).__init__( - 'InvalidAccessKeyId', - "The AWS Access Key Id you provided does not exist in our records.") - - class AuthFailureError(RESTError): code = 400