Skip to content

Commit bbd3319

Browse files
henryiiiAA-Turner
authored andcommitted
Protect empty languages dict
Closes #230 Co-authored-by: Adam Turner <[email protected]> Signed-off-by: Henry Schreiner <[email protected]>
1 parent 298ff9f commit bbd3319

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/create_init.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
imports.sort()
2222
languages.sort()
2323

24+
if len(languages) == 0:
25+
raise AssertionError('languages list is empty!')
26+
2427
src = '''__all__ = ('language', 'stemmer')
2528
2629
%(imports)s

0 commit comments

Comments
 (0)