Exemplo n.º 1
0
 def _f(object_to_check):
     log.info('{}, args: {}'.format(f_object, object_to_check))
     try:
         sample = object_to_check.split('.')
     except Exception as err:
         log.error(err)
         raise err
     if len(sample) != 4:
         raise Exceptions.FailCheckLenIP(
             'len({}) must be 4'.format(object_to_check))
     log.info('Function: {}, Status: OK'.format(f_object.__name__))
     return f_object(object_to_check)