From d8acfd856a641e8ed0d9610f57a1d4687a7fff94 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Wed, 14 Feb 2024 22:54:21 +0000 Subject: [PATCH] Black --- Lib/fontbakery/checkrunner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/fontbakery/checkrunner.py b/Lib/fontbakery/checkrunner.py index 13f47872d2..5601381f3e 100644 --- a/Lib/fontbakery/checkrunner.py +++ b/Lib/fontbakery/checkrunner.py @@ -274,6 +274,7 @@ def run(self, reporters): reporter.start(self.order) reporter_lock = threading.Lock() + def distribute_result(result): with reporter_lock: for reporter in reporters: @@ -285,7 +286,9 @@ def distribute_result(result): ) as executor: for identity in self.order: future = executor.submit(self._run_check, identity) - future.add_done_callback(lambda future: distribute_result(future.result())) + future.add_done_callback( + lambda future: distribute_result(future.result()) + ) else: for identity in self.order: result = self._run_check(identity)