From cd514bfd05284f9934451cfedfcd600a4ec7478a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 2 Jun 2023 10:27:15 +0100 Subject: [PATCH] move the print-statements to capture error/warnings in ```code``` --- src/budget_sync/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/budget_sync/main.py b/src/budget_sync/main.py index 3f8c996..a5ec9fa 100644 --- a/src/budget_sync/main.py +++ b/src/budget_sync/main.py @@ -48,8 +48,8 @@ def main(): except (IOError, ConfigParseError) as e: logging.error("Failed to parse config file: %s", e) return - print("```") # for using the output as markdown logging.info("Using Bugzilla instance at %s", config.bugzilla_url) + print("```") # for using the output as markdown bz = Bugzilla(config.bugzilla_url) if args.username: logging.debug("logging in...") @@ -69,6 +69,7 @@ def main(): write_budget_markdown(budget_graph, args.output_dir) write_budget_csv(budget_graph, args.output_dir) summarize_milestones(budget_graph) + print("```") # for using the output as markdown json_milestones(budget_graph, args.comments, args.output_dir) @@ -150,7 +151,6 @@ def summarize_milestones(budget_graph: BudgetGraph): milestone.canonical_bug_id) print() - print("```") # for using the output as markdown def json_milestones(budget_graph: BudgetGraph, add_comments: bool, -- 2.30.2