src/orion/core/cli/base.py
def execute(self, argv):
        """Execute main function of the subparser"""
        try:
            args, function = self.parse(argv)
            returncode = function(args)
        except (
            NoConfigurationError,
            NoNameError,
            DatabaseError,
            MissingResultFile,
            BranchingEvent,
            InexecutableUserScript,
        ) as e:
            print("Error:", e, file=sys.stderr)

            if args.get("verbose", 0) >= 2:
                raise e

            return 1

        except KeyboardInterrupt:
            print("Orion is interrupted.")
            return 130

        return 0 if returncode is None else returncode
Execute main function of the subparser
Execute main function of the subparser
Execute main function of the subparser
def execute(self, argv):
        try:
            args, function = self.parse(argv)
            returncode = function(args)
        except (
            NoConfigurationError,
            NoNameError,
            DatabaseError,
            MissingResultFile,
            BranchingEvent,
            InexecutableUserScript,
        ) as e:
            print("Error:", e, file=sys.stderr)
            if args.get("verbose", 0) >= 2:
                raise e
            return 1
        except KeyboardInterrupt:
            print("Orion is interrupted.")
            return 130
        return 0 if returncode is None else returncode
def execute ( self , argv ) : try : args , function = self . parse ( argv ) returncode = function ( args ) except ( NoConfigurationError , NoNameError , DatabaseError , MissingResultFile , BranchingEvent , InexecutableUserScript , ) as e : print ( "Error:" , e , file = sys . stderr ) if args . get ( "verbose" , 0 ) >= 2 : raise e return 1 except KeyboardInterrupt : print ( "Orion is interrupted." ) return 130 return 0 if returncode is None else returncode
Execute main function of the subparser
Execute main function of the subparser
"""Execute main function of the subparser"""
self
argv