feat: add log
Browse files- font_dataset/text.py +1 -0
font_dataset/text.py
CHANGED
@@ -49,6 +49,7 @@ def random_char(length: int, font: DSFont, char_set: str) -> str:
|
|
49 |
ret += char
|
50 |
else:
|
51 |
fail_cnt += 1
|
|
|
52 |
if fail_cnt > 2000:
|
53 |
raise UnqualifiedFontException(font)
|
54 |
|
|
|
49 |
ret += char
|
50 |
else:
|
51 |
fail_cnt += 1
|
52 |
+
print(f"FAILING {fail_cnt} for {font.path}")
|
53 |
if fail_cnt > 2000:
|
54 |
raise UnqualifiedFontException(font)
|
55 |
|