Hi,
I am getting the RateExceededError and according to the suggestions I want to catch this exception and respect the 'retryAfterSeconds' attribute.
However I am failing to catch just this particular exception and leaving the rest to be handled with my generic error handler.
I tried to do something like this:
try:
working_code()
except RateExceededError as Rate_e:
time.sleep(Rate_e.retryAfterSeconds)
but this does not work.
Is there some Exceptions import I am missing or is there another way of doing it?
Thank you!
Martin