<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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