mirror of
https://github.com/hackathi/brother_ql_web.git
synced 2026-05-05 22:32:46 +00:00
fonts: exit if not a single font was found
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user