mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-06 16:56:40 +08:00
BuildLangModel: printing a message when discarding a page.
This commit is contained in:
parent
0446e24c8d
commit
27135a8880
@ -233,6 +233,7 @@ def visit_pages(titles, depth, lang, logfd):
|
||||
except (wikipedia.exceptions.PageError,
|
||||
wikipedia.exceptions.DisambiguationError):
|
||||
# Let's just discard a page when I get an exception.
|
||||
print("Discarding page {}.\n".format(title))
|
||||
continue
|
||||
logfd.write("\n{} (revision {})".format(title, page.revision_id))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user