From 434d542aaff0d3df1a91a6d6d052db9a30db89fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=B6ppner?= <jonas.hoeppner@garz-fricke.com> Date: Thu, 19 Sep 2024 11:10:48 +0200 Subject: [PATCH] get_integration_source: Print warning to stderr instead of stdout --- scripts/get_integration_sources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/get_integration_sources.py b/scripts/get_integration_sources.py index ee1dd20d..4849abc9 100755 --- a/scripts/get_integration_sources.py +++ b/scripts/get_integration_sources.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import argparse import re +import sys from gitlab import Gitlab, GitlabGetError from gitlab.v4.objects import Group @@ -48,7 +49,8 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group: pass elif e.response_code == 403: # forbidden print( - f"Warning: No permissions to the shared project {project.path_with_namespace}. Skipping it." + f"Warning: No permissions to the shared project {project.path_with_namespace}. Skipping it.", + file=sys.stderr, ) else: raise -- GitLab