summaryrefslogtreecommitdiff
path: root/cli/app/thesaurus/api.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-04-07 19:07:26 +0200
committerJules Laplace <julescarbon@gmail.com>2020-04-07 19:07:26 +0200
commit762c2b723782f3859a0e85fcc3810058ca12e26e (patch)
treef352e617b4dea4d4152142b4897e3390479a9a82 /cli/app/thesaurus/api.py
parent9cb1b1bded44273f7abf2ae3d4950e03046f3579 (diff)
rewrite solver, descend both trees at once until you find where they meet
Diffstat (limited to 'cli/app/thesaurus/api.py')
-rw-r--r--cli/app/thesaurus/api.py2
1 files changed, 1 insertions, 1 deletions
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)