def _try2set(self, fmto, *args, **kwargs):
        """Sets the value in `fmto` and gives additional informations when fail

        Parameters
        ----------
        fmto: Formatoption
        ``*args`` and ``**kwargs``
            Anything that is passed to `fmto`s :meth:`~Formatoption.set_value`
            method"""
        try:
            fmto.set_value(*args, **kwargs)
        except Exception as e:
            critical("Error while setting %s!" % fmto.key,
                     logger=getattr(self, 'logger', None))
            raise e
def _try2set ( self , fmto , * args , ** kwargs ) : try : fmto . set_value ( * args , ** kwargs ) except Exception as e : critical ( "Error while setting %s!" % fmto . key , logger = getattr ( self , 'logger' , None ) ) raise e
Sets the value in `fmto` and gives additional informations when fail

        Parameters
        ----------
        fmto: Formatoption
        ``*args`` and ``**kwargs``
            Anything that is passed to `fmto`s :meth:`~Formatoption.set_value`
            method