91e7eb2a61473531cc5dcdd378c8bd5dc03a4554,polyaxon_cli/cli/project.py,,delete,#Any#,143

Before Change



    try:
        response = PolyaxonClients().project.delete_project(project)
        PolyaxonClients.handle_response(
            project, error_message="The project was not deleted.")
    except PolyaxonShouldExitError as e:
        logger.exception(e)
        sys.exit(0)

After Change


    try:
        response = PolyaxonClients().project.delete_project(user, project_name)
    except (PolyaxonHTTPError, PolyaxonShouldExitError) as e:
        Printer.print_error("Could not delete project `{}`.".format(project))
        Printer.print_error("Error message `{}`.".format(e))
        sys.exit(1)

    if response.status_code == 204:
        Printer.print_success("Project `{}` was delete successfully".format(project))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/project.py
Class Name:
Method Name: delete


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/project.py
Class Name:
Method Name: create


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/project.py
Class Name:
Method Name: update


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/experiment_group.py
Class Name:
Method Name: delete


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/experiment.py
Class Name:
Method Name: delete


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/experiment_group.py
Class Name:
Method Name: update


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/project.py
Class Name:
Method Name: delete


Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/experiment.py
Class Name:
Method Name: restart