Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Check if features or labels is not None in config_adapter.v3_to_v4 () #504

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion pytext/config/config_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def v3_to_v4(json_config):
for section_str in ["features", "labels"]:
if section_str in task:
section = task[section_str]
if old_key in section:
if section and old_key in section:
section[new_key] = section[old_key]
section.pop(old_key)

Expand Down