PyFunceble/generate.py
def _handle_non_existant_index(cls):
        """
        Handle and check that some configuration index exists.
        """

        try:
            # We try to call the http code.
            PyFunceble.INTERN["http_code"]
        except KeyError:
            # If it is not found.

            # We initiate an empty http code.
            PyFunceble.INTERN["http_code"] = "*" * 3

        try:
            # We try to call the referer.
            PyFunceble.INTERN["referer"]
        except KeyError:
            # If it is not found.

            # We initate an `Unknown` referer.
            PyFunceble.INTERN["referer"] = "Unknown"
def _handle_non_existant_index(cls):
        try:
            # We try to call the http code.
            PyFunceble.INTERN["http_code"]
        except KeyError:
            # If it is not found.

            # We initiate an empty http code.
            PyFunceble.INTERN["http_code"] = "*" * 3

        try:
            # We try to call the referer.
            PyFunceble.INTERN["referer"]
        except KeyError:
            # If it is not found.

            # We initate an `Unknown` referer.
            PyFunceble.INTERN["referer"] = "Unknown"
def _handle_non_existant_index ( cls ) : try : # We try to call the http code. PyFunceble . INTERN [ "http_code" ] except KeyError : # If it is not found. # We initiate an empty http code. PyFunceble . INTERN [ "http_code" ] = "*" * 3 try : # We try to call the referer. PyFunceble . INTERN [ "referer" ] except KeyError : # If it is not found. # We initate an `Unknown` referer. PyFunceble . INTERN [ "referer" ] = "Unknown"
Handle and check that some configuration index exists.
Handle and check that some configuration index exists .