mirror of
https://github.com/pklaus/brother_ql_web.git
synced 2024-05-25 11:56:53 +03:00
fonts: exit if not a single font was found
This commit is contained in:
parent
d1286f014e
commit
7227a72112
|
@ -250,6 +250,9 @@ def main():
|
||||||
FONTS = get_fonts()
|
FONTS = get_fonts()
|
||||||
if args.font_folder:
|
if args.font_folder:
|
||||||
FONTS.update(get_fonts(args.font_folder))
|
FONTS.update(get_fonts(args.font_folder))
|
||||||
|
if not FONTS:
|
||||||
|
sys.stderr.write("Not a single font was found on your system. Please install some or use the \"--font-folder\" argument.\n")
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
for font in DEFAULT_FONTS:
|
for font in DEFAULT_FONTS:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user