Skip to content

Instantly share code, notes, and snippets.

View andrsGutirrz's full-sized avatar
🏠
Working

Andrés Gutiérrez andrsGutirrz

🏠
Working
View GitHub Profile
@cheeyeo
cheeyeo / custom_client_error_boto3.py
Created June 23, 2020 15:43
Creating a boto3 ClientError manually!
raise ClientError(operation_name='InvalidKeyPair.Duplicate', error_response={
'Error': {
'Code': 'Duplicate',
'Message': 'This is a custom message'
}
}
)