So this is the exception:
botocore.errorfactory.ResourceInUseException: An error occurred (ResourceInUseException) when calling the CreateTable operation: Cannot create preexisting table
I am going through their tutorials, and have searched for some code examples of Python and
Dynamodb exceptions but so far no luck.
I only see ClientError
exception, but not this specific one.
I have tried several variants such as :
except boto3.ResourceInUseException:
except botocore.errorfactory.ResourceInUseException
various others, but no such exception exists.
I am not sure what the proper way to catch such as exception (when a table already exists).
Thank you.