Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions qbreader/_api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,14 @@ def category_correspondence(
]:
return (Category.LITERATURE, None)

# Accounts for AlternateSubcategory.PRACTICES and AlternateSubcategory.BELIEFS
return (None, None)
if typed_alt_subcat in [
AlternateSubcategory.PRACTICES,
AlternateSubcategory.BELIEFS,
]:
return (None, None)

# Alternate subcategory passed in isn't mapped to a category/subcategory
raise ValueError(f"Unmapped alternate subcategory: {typed_alt_subcat}")


def normalize_cats(
Expand Down
Loading