diff --git a/api/s1_title.py b/api/s1_title.py index b521860..59962a0 100644 --- a/api/s1_title.py +++ b/api/s1_title.py @@ -33,9 +33,11 @@ class InpTitle: def inp_in_title(section: list[str]) -> ChangeSet: + if section == []: + return ChangeSet() + obj = InpTitle(section) - cs = ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value}) - return cs + return ChangeSet(g_update_prefix | {'type': 'title', 'value' : obj.value}) def inp_out_title(name: str) -> list[str]: