src/orion/core/io/interactive_commands/branching_prompt.py
def wrap_autocomplete(f):
    """Wrap autocomplete to catch errors and print stacktrace"""

    @functools.wraps(f)
    def call(self, *args):

        # Don't know why, it gets reset to default ones between 2 auto-completions
        readline.set_completer_delims(" ")

        try:
            completions = f(self, *args)
        except KeyboardInterrupt:
            raise
        except BaseException:
            print(traceback.format_exc())
            completions = []

        return completions

    return call
Wrap autocomplete to catch errors and print stacktrace
Wrap autocomplete to catch errors and print stacktrace
Wrap autocomplete to catch errors and print stacktrace
def wrap_autocomplete(f):
    @functools.wraps(f)
    def call(self, *args):
        readline.set_completer_delims(" ")
        try:
            completions = f(self, *args)
        except KeyboardInterrupt:
            raise
        except BaseException:
            print(traceback.format_exc())
            completions = []
        return completions
    return call
def wrap_autocomplete ( f ) : @ functools . wraps ( f ) def call ( self , * args ) : readline . set_completer_delims ( " " ) try : completions = f ( self , * args ) except KeyboardInterrupt : raise except BaseException : print ( traceback . format_exc ( ) ) completions = [ ] return completions return call
Wrap autocomplete to catch errors and print stacktrace
Wrap autocomplete to catch errors and print stacktrace
"""Wrap autocomplete to catch errors and print stacktrace""" # Don't know why, it gets reset to default ones between 2 auto-completions
f