PyFunceble/status.py
def handle(self):
        """
        Handle the backend of the given status.
        """

        # We initiate the source we are going to parse to the Generate class.
        source = "URL"

        if self.catched.lower() not in PyFunceble.STATUS["list"]["invalid"]:
            # The parsed status is not in the list of invalid.

            # We generate the status file with the catched status.
            Generate(self.catched, source).status_file()
        else:
            # The parsed status is in the list of invalid.

            # We generate the status file with the parsed status.
            Generate(self.catched, "SYNTAX").status_file()

        # We return the parsed status.
        return self.catched
def handle(self):
        # We initiate the source we are going to parse to the Generate class.
        source = "URL"

        if self.catched.lower() not in PyFunceble.STATUS["list"]["invalid"]:
            # The parsed status is not in the list of invalid.

            # We generate the status file with the catched status.
            Generate(self.catched, source).status_file()
        else:
            # The parsed status is in the list of invalid.

            # We generate the status file with the parsed status.
            Generate(self.catched, "SYNTAX").status_file()

        # We return the parsed status.
        return self.catched
def handle ( self ) : # We initiate the source we are going to parse to the Generate class. source = "URL" if self . catched . lower ( ) not in PyFunceble . STATUS [ "list" ] [ "invalid" ] : # The parsed status is not in the list of invalid. # We generate the status file with the catched status. Generate ( self . catched , source ) . status_file ( ) else : # The parsed status is in the list of invalid. # We generate the status file with the parsed status. Generate ( self . catched , "SYNTAX" ) . status_file ( ) # We return the parsed status. return self . catched
Handle the backend of the given status.
Handle the backend of the given status .