# Buggy code
def print_run_or_instructions(args: argparse.Namespace, path: Text) -> None:
    from rasa.core import constants
    import questionary

    should_run = (
        questionary.confirm(
            "Do you want to speak to the trained assistant on the command line? 🤖"
        )
        .skip_if(args.no_prompt, default=False)
        .ask()
    )

    if should_run:
        # provide defaults for command line arguments
        attributes = [
            "endpoints",
            "credentials",
            "cors",
            "auth_token",
            "jwt_secret",
            "jwt_method",
            "enable_api",
        ]
        for a in attributes:
            setattr(args, a, None)

        args.port = constants.DEFAULT_SERVER_PORT

        shell(args)
    else:
        if args.no_prompt:
            print(
                "If you want to speak to the assistant, "
                "run 'rasa shell' at any time inside "
                "the project directory."
                "".format(path)
            )
        else:
            print_success(
                "Ok 👍🏼. "
                "If you want to speak to the assistant, "
                "run 'rasa shell' at any time inside "
                "the project directory."
                "".format(path)
            )


# Traceback (AttributeError)
Traceback (most recent call last):
File "/Users/federico/Workspace/rasa-x/env/bin/rasa", line 11, in <module>
load_entry_point('rasa', 'console_scripts', 'rasa')()
File "/Users/federico/Workspace/rasa/rasa/__main__.py", line 76, in main
cmdline_arguments.func(cmdline_arguments)
File "/Users/federico/Workspace/rasa/rasa/cli/scaffold.py", line 194, in run
init_project(args, path)
File "/Users/federico/Workspace/rasa/rasa/cli/scaffold.py", line 112, in init_project
print_train_or_instructions(args, path)
File "/Users/federico/Workspace/rasa/rasa/cli/scaffold.py", line 52, in print_train_or_instructions
print_run_or_instructions(args, path)
File "/Users/federico/Workspace/rasa/rasa/cli/scaffold.py", line 90, in print_run_or_instructions
shell(args)
File "/Users/federico/Workspace/rasa/rasa/cli/shell.py", line 101, in shell
rasa.cli.run.run(args)
File "/Users/federico/Workspace/rasa/rasa/cli/run.py", line 99, in run
if args.remote_storage is not None:
AttributeError: 'Namespace' object has no attribute 'remote_storage'

# Fixed code
def print_run_or_instructions(args: argparse.Namespace, path: Text) -> None:
    from rasa.core import constants
    import questionary

    should_run = (
        questionary.confirm(
            "Do you want to speak to the trained assistant on the command line? 🤖"
        )
        .skip_if(args.no_prompt, default=False)
        .ask()
    )

    if should_run:
        # provide defaults for command line arguments
        attributes = [
            "endpoints",
            "credentials",
            "cors",
            "auth_token",
            "jwt_secret",
            "jwt_method",
            "enable_api",
            "remote_storage",
        ]
        for a in attributes:
            setattr(args, a, None)

        args.port = constants.DEFAULT_SERVER_PORT

        shell(args)
    else:
        if args.no_prompt:
            print(
                "If you want to speak to the assistant, "
                "run 'rasa shell' at any time inside "
                "the project directory."
                "".format(path)
            )
        else:
            print_success(
                "Ok 👍🏼. "
                "If you want to speak to the assistant, "
                "run 'rasa shell' at any time inside "
                "the project directory."
                "".format(path)
            )