nos
nos

Reputation: 20862

what's the equivalent of boto.exception.BotoServerError in boto3

In boto exceptions.py, there is a class BotoServerError(StandardError). However, in boto3 exceptions.py it no longer exists. What would be its replacement?

Upvotes: 1

Views: 1187

Answers (1)

helloV
helloV

Reputation: 52375

In Boto3, this is pushed in botocore.

botocore exceptions.py

class ClientError(Exception):

>>> from botocore.exceptions import ClientError

Upvotes: 3

Related Questions