aboutsummaryrefslogtreecommitdiffstats
path: root/devourer.py
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-11-12 04:35:56 +0000
committerterminaldweller <thabogre@gmail.com>2021-11-12 04:35:56 +0000
commitd8beed8d574a42a2e6eab5632e40f235f1408277 (patch)
tree1d0b3926c0b320690231782860b84f8420ed6bf3 /devourer.py
parentWIP (diff)
downloaddevourer-d8beed8d574a42a2e6eab5632e40f235f1408277.tar.gz
devourer-d8beed8d574a42a2e6eab5632e40f235f1408277.zip
the server is up and running now. the things that worked before work now
Diffstat (limited to 'devourer.py')
-rw-r--r--devourer.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/devourer.py b/devourer.py
index cc25206..4fb8532 100644
--- a/devourer.py
+++ b/devourer.py
@@ -215,9 +215,7 @@ def summarizeLinkToAudio(url, summary) -> str:
result = article.text
else:
print("invalid option for summary type.")
- result = None
except Exception as e:
- result = None
logging.exception(e)
finally:
return result
@@ -256,8 +254,8 @@ def searchWikipedia(search_term: str) -> str:
}
res = getWithParams(os.environ["WIKI_SEARCH_URL"], searchParmas)
# FIXME-handle wiki redirects/disambiguations
- # argparser.args.source = res[3][0]
- print(res)
+ source = res[3][0]
+ result = summarizeLinkToAudio(source, "none")
except Exception as e:
logging.exception(e)
finally: