From bbbb5f11d302624c8e8cf5ec207e12f35df413d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Trimaille?= Date: Mon, 18 Dec 2023 23:11:50 +0100 Subject: [PATCH] Fix previous commit about logging in transifex (#261) * Fix previous commit about logging in transifex * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- qgispluginci/parameters.py | 2 +- qgispluginci/translation.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/qgispluginci/parameters.py b/qgispluginci/parameters.py index e9e98455..a1b2c9e4 100644 --- a/qgispluginci/parameters.py +++ b/qgispluginci/parameters.py @@ -250,7 +250,7 @@ def validate_args(args: Namespace): - the value of `release_version` matches no supported pattern. In any case, warn the user if the value of `release_version` doesn't match the semver pattern. """ - if not args.release_version: + if not hasattr(args, "release_version") or not args.release_version: return patterns = Parameters.get_release_version_patterns() diff --git a/qgispluginci/translation.py b/qgispluginci/translation.py index 80c123dd..e1e15b6a 100644 --- a/qgispluginci/translation.py +++ b/qgispluginci/translation.py @@ -138,9 +138,7 @@ def pull(self): existing_langs.append(lang) for lang in existing_langs: ts_file = f"{self.parameters.plugin_path}/i18n/{self.parameters.transifex_resource}_{lang}.ts" - logger.debug( - f"Downloading translation file: {ts_file}, resource: {self.config.resource_slug}" - ) + logger.debug(f"Downloading translation file: {ts_file}") self.tx_client.get_translation( language_code=lang, path_to_output_file=ts_file,