<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def override_familly(self, args):
 """Look in the current wrapped object to find a cache configuration to override the current default configuration."""

        resourceapi = args[0]
        cache_cfg = resourceapi.cache
        if cache_cfg.has_key('familly'):
            self.familly = cache_cfg['familly']
        if cache_cfg.has_key('whole_familly'):
            self.whole_familly = cache_cfg['whole_familly']
        if self.familly is None:
            raise Exception("Invalid familly value for Cache decorator.")