Fix exception in the exception. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 3aad06b540dc9745aa11a4b97b2af68ae37883f4
(DIR) parent a2429b3978916d5a35c3bbd8581311e7c5fb7647
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Mon, 24 Apr 2023 20:21:59 +0200
Fix exception in the exception.
Diffstat:
M wikipediagame | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/wikipediagame b/wikipediagame
@@ -76,7 +76,7 @@ def main(args):
title = str(w.random())
try:
summary = w.summary(title)
- except (w.exceptions.DisambiguationError, wikipedia.exceptions.PageError):
+ except (w.exceptions.DisambiguationError, w.exceptions.PageError):
continue
if os.path.exists(hintpath):