Skip to content
Snippets Groups Projects
Commit 434d542a authored by Jonas Höppner's avatar Jonas Höppner
Browse files

get_integration_source: Print warning to stderr instead of stdout

parent 5cc674f7
No related branches found
No related tags found
1 merge request!424changelog-generator: Add parameter to include all integrated projects
Pipeline #164768 skipped with stage
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse import argparse
import re import re
import sys
from gitlab import Gitlab, GitlabGetError from gitlab import Gitlab, GitlabGetError
from gitlab.v4.objects import Group from gitlab.v4.objects import Group
...@@ -48,7 +49,8 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group: ...@@ -48,7 +49,8 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group:
pass pass
elif e.response_code == 403: # forbidden elif e.response_code == 403: # forbidden
print( 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: else:
raise raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment