Skip to content

Commit e3f99e9

Browse files
authored
Merge pull request #672 from elbeno/fix-stable-handling
🐛 Fix handling optional stable catalog
2 parents 24d5108 + 3ad3724 commit e3f99e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gen_str_catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env python3
22

33
import argparse
4-
from functools import partial
54
import itertools
65
import json
76
import re
87
import xml.etree.ElementTree as et
8+
from functools import partial
99

1010

1111
def find_arg_split_pos(s: str, start: int) -> int:
@@ -215,7 +215,7 @@ def write_json(messages, modules, extra_inputs: list[str], filename: str, stable
215215

216216

217217
def read_stable(stable_filenames: list[str]):
218-
stable_catalog = dict()
218+
stable_catalog: dict[str, list] = dict(messages=[], modules=[])
219219
for filename in stable_filenames:
220220
with open(filename, "r") as f:
221221
stable_catalog.update(json.load(f))

0 commit comments

Comments
 (0)