docs: def error_map(func):
      """Wrap exceptions raised by requests.
  
      .. py:decorator:: error_map
      """
      @six.wraps(func)
      def wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except exceptions.RequestException as err:
              raise TVDBRequestException(
                  err,
                  response=getattr(err, 'response', None),
                  request=getattr(err, 'request', None))
      return wrapper