From 4f484fb40a051171edfd7c0c0ccabdae8089a223 Mon Sep 17 00:00:00 2001 From: Adrien Tétar Date: Sat, 7 Nov 2015 19:57:29 +0100 Subject: fontView: resist to malformed glyphList --- Lib/defconQt/__main__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Lib/defconQt/__main__.py') diff --git a/Lib/defconQt/__main__.py b/Lib/defconQt/__main__.py index 79fa2cf..b64405d 100644 --- a/Lib/defconQt/__main__.py +++ b/Lib/defconQt/__main__.py @@ -26,7 +26,12 @@ def main(): glyphListPath = settings.value("settings/glyphListPath", type=str) if glyphListPath and os.path.exists(glyphListPath): from defconQt.util import glyphList - app.GL2UV = glyphList.parseGlyphList(glyphListPath) + try: + glyphList = glyphList.parseGlyphList(glyphListPath) + except Exception as e: + print(e) + else: + app.GL2UV = glyphList window = MainWindow(font) window.show() sys.exit(app.exec_()) -- cgit v1.2.3