code: def catch_gzip_errors(f):
      
      def new_f(self, *args, **kwargs):
          try:
              return f(self, *args, **kwargs)
          except requests.exceptions.ContentDecodingError as e:
              log.warning("caught gzip error: %s", e)
              self.connect()
              return f(self, *args, **kwargs)
      return new_f
docs: A decorator to handle gzip encoding errors which have been known to
      happen during hydration.