def try_parse_time(value):
 if (value is None):
  return None
 try:
  return parse_time(value)
 except ValueError:
  return None

def try_parse_time ( value ) : if ( value is None ) : return None try : return parse_time ( value ) except ValueError : return None
tries to make a time out of the value .