Skip to content

Commit

Permalink
Fixed a trivial crash caused by previous change.
Browse files Browse the repository at this point in the history
  • Loading branch information
tatuylonen committed Aug 11, 2020
1 parent b39bf06 commit 42dbb60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (c) 2018 Tatu Ylonen. See LICENSE and https://ylonen.org
# Copyright (c) 2018-2020 Tatu Ylonen. See LICENSE and https://ylonen.org

from setuptools import setup

Expand All @@ -26,7 +26,6 @@
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: Finnish",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
Expand Down
2 changes: 2 additions & 0 deletions wiktextract/wiktionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def capture_specials_fn(dt):
"""Captures certain special pages that are needed for processing other
pages."""
assert isinstance(dt, dict)
if "redirect" in dt:
return []
title = dt["title"]
text = dt["text"]
model = dt["model"]
Expand Down

0 comments on commit 42dbb60

Please sign in to comment.