Skip to main content
deleted 152 characters in body
Source Link
mkrieger1
  • 24.5k
  • 7
  • 72
  • 87

This was originally a comment, but since it got a lot of upvotes and the OP claims it was what they were looking for, I'm reposting it as an answer:

It looks like it's a RateLimitExceededRateLimitExceeded exception. Though, if you really want to be sure, you could do this:

try:
    # code
except Exception as e:
    print e.__class__

This would print out the exception class that was raised, which will give you a definitive answer

This was originally a comment, but since it got a lot of upvotes and the OP claims it was what they were looking for, I'm reposting it as an answer:

It looks like it's a RateLimitExceeded exception. Though, if you really want to be sure, you could do this:

try:
    # code
except Exception as e:
    print e.__class__

This would print out the exception class that was raised, which will give you a definitive answer

It looks like it's a RateLimitExceeded exception. Though, if you really want to be sure, you could do this:

try:
    # code
except Exception as e:
    print e.__class__

This would print out the exception class that was raised, which will give you a definitive answer

Source Link
inspectorG4dget
  • 114.9k
  • 30
  • 162
  • 254

This was originally a comment, but since it got a lot of upvotes and the OP claims it was what they were looking for, I'm reposting it as an answer:

It looks like it's a RateLimitExceeded exception. Though, if you really want to be sure, you could do this:

try:
    # code
except Exception as e:
    print e.__class__

This would print out the exception class that was raised, which will give you a definitive answer