From 762c2b723782f3859a0e85fcc3810058ca12e26e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 7 Apr 2020 19:07:26 +0200 Subject: rewrite solver, descend both trees at once until you find where they meet --- cli/app/thesaurus/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/app') diff --git a/cli/app/thesaurus/api.py b/cli/app/thesaurus/api.py index 467d5fb..89e5ad1 100644 --- a/cli/app/thesaurus/api.py +++ b/cli/app/thesaurus/api.py @@ -24,7 +24,7 @@ class Thesaurus: try: data = api_fn(word) except Exception as e: - print("Got HTTP error, sleeping for 5 seconds") + print("Got HTTP error for {word}, sleeping for 5 seconds") time.sleep(5) pass write_json(path, data) -- cgit v1.2.3-70-g09d2