91e7eb2a61473531cc5dcdd378c8bd5dc03a4554,polyaxon_cli/cli/version.py,,check_cli_version,#,33
Before Change
try:
server_version = PolyaxonClients().version.get_cli_version()
except PolyaxonShouldExitError as e:
logger.exception(e)
sys.exit(0)
current_version = pkg_resources.get_distribution(PROJECT_CLI_NAME).version
if LooseVersion(current_version) < LooseVersion(server_version.min_version):
After Change
try:
server_version = PolyaxonClients().version.get_cli_version()
except (PolyaxonHTTPError, PolyaxonShouldExitError) as e:
Printer.print_error("Could not get cli version.")
Printer.print_error("Error message `{}`.".format(e))
sys.exit(1)
current_version = pkg_resources.get_distribution(PROJECT_CLI_NAME).version
if LooseVersion(current_version) < LooseVersion(server_version.min_version):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/version.py
Class Name:
Method Name: check_cli_version
Project Name: polyaxon/polyaxon
Commit Name: 91e7eb2a61473531cc5dcdd378c8bd5dc03a4554
Time: 2017-12-14
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/auth.py
Class Name:
Method Name: login
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: list