[Reproducible-commits] [diffoscope] 03/05: main: Only call finish_threads if difference is not None
Joachim Breitner
nomeata at moszumanska.debian.org
Thu Dec 3 12:19:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch pu/parallel2
in repository diffoscope.
commit 9485b35b9bffd4d8fb933b8b5b5ac53ea9e05ebd
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Thu Dec 3 12:32:11 2015 +0100
main: Only call finish_threads if difference is not None
---
diffoscope/__main__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/diffoscope/__main__.py b/diffoscope/__main__.py
index 5548788..7617bd1 100644
--- a/diffoscope/__main__.py
+++ b/diffoscope/__main__.py
@@ -125,7 +125,8 @@ def run_diffoscope(parsed_args):
set_locale()
difference = diffoscope.comparators.compare_root_paths(
parsed_args.file1, parsed_args.file2)
- difference.finish_threads()
+ if difference:
+ difference.finish_threads()
Config.general.executor.shutdown(wait=True)
if difference:
if parsed_args.html_output:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list