From 983cd2fad9d496194514134fab56c1ac34c1b659 Mon Sep 17 00:00:00 2001 From: Brandon Squizzato Date: Wed, 27 Oct 2021 14:45:35 -0400 Subject: [PATCH] Fix log msgs --- bonfire/utils.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bonfire/utils.py b/bonfire/utils.py index bfe72f67..e354a33c 100644 --- a/bonfire/utils.py +++ b/bonfire/utils.py @@ -435,7 +435,6 @@ def _compare_version(pypi_version): if my_version < pypi_version: log.info( - "\n" "there is a new bonfire version available! (yours: {}, available: {})" "\n" "upgrade with:\n" @@ -479,7 +478,7 @@ def check_pypi(): if not _ver_check_needed(): return - log.info("\nChecking pypi for latest release...") + log.info("checking pypi for latest release...") pkg_data = {} try: @@ -487,15 +486,15 @@ def check_pypi(): response.raise_for_status() pkg_data = response.json() except requests.exceptions.Timeout: - log.error("Unable to reach pypi quickly, giving up.") + log.error("unable to reach pypi quickly, giving up.") except requests.exceptions.HTTPError as e: - log.error("Error response from pypi: ", e.errno, e.message) + log.error("error response from pypi: ", e.errno, e.message) except ValueError: - log.error("Response was not valid json, giving up.") + log.error("response was not valid json, giving up.") try: pypi_version = pkg_data["info"]["version"] except KeyError: - log.error("Unable to parse version info from pypi") + log.error("unable to parse version info from pypi") else: _compare_version(pypi_version)