class MaxRetriesError(Exception):
   """An exception class raised when maximum number of retries, trying to get docs, is exceeded."""
   pass

class MaxRetriesError(Exception):
   """An exception class raised when maximum number of retries, trying to get docs, is exceeded."""
   pass

An exception class raised when maximum number of retries, trying to get docs, is exceeded.