# -*- coding: utf-8 -*-

from data_control import function_2, function_3, function_4
from tool_kit import url_todo

def phase2(path_log) :
    try :
        function_2(path_log)
    except :
        print "phase 2 : 1st time function failed to launch, re start of function"
        try :
            function_2(path_log)
        except :
            print "phase 2 : 2nd time function failed to launch, re start of function"
            function_2(path_log)

def phase3(path_log) :
    function_3(path_log)

def phase4(path_log) :
    try :
        function_4(path_log)
    except :
        print "phase 4 : 1st time function failed to launch, re start of function"
        print "\n"
        url_todo(path_log)
        try :
            function_4(path_log)
        except :
            print "phase 4 : 2nd time function failed to launch, re start of function"
            url_todo(path_log)
            function_4(path_log)

