Skip to content

Commit

Permalink
Hotfix hyperglot-data attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
kontur committed Oct 7, 2024
1 parent 3368f92 commit 1202cc7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# A changelog for the lib/hyperglot language database and CLI tool (dd.mm.yyyy)

## 0.7.1 (07.10.2024)
- FIX: Fixed `hyperglot-data` error

## 0.7.0 (07.10.2024)
- DATA: All language yaml documents now have their `contributors` listed, some have `reviewers` listed
- DATA: **Massive* improvement of language `sources` with proper source citations where possible
Expand Down
2 changes: 1 addition & 1 deletion lib/hyperglot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from enum import Enum
from typing import List

__version__ = "0.7.0"
__version__ = "0.7.1"

DB = path.abspath(path.join(path.dirname(__file__), "data"))
DB_EXTRA = path.abspath(path.join(path.dirname(__file__), "extra_data"))
Expand Down
2 changes: 1 addition & 1 deletion lib/hyperglot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def export(output):

@click.command()
@click.argument("search")
def data(search):
def data(search=""):
"""
Pass in a 3-letter iso code or language name (search term) to show
Hyperglot data for it
Expand Down
2 changes: 1 addition & 1 deletion lib/hyperglot/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def find_language(search):
autonyms = [] if not aut else [aut.lower()]
if "orthographies" in lang:
for o in lang["orthographies"]:
if "autonym" in o:
if "autonym" in o and o["autonym"] is not None:
autonyms.append(o["autonym"].lower())

if search == name or search in autonyms:
Expand Down

0 comments on commit 1202cc7

Please sign in to comment.