diff options
| author | Adrien Tétar | 2015-11-07 19:57:29 +0100 | 
|---|---|---|
| committer | Adrien Tétar | 2015-11-07 19:57:29 +0100 | 
| commit | 4f484fb40a051171edfd7c0c0ccabdae8089a223 (patch) | |
| tree | f5b7429eee2fc76ed931844c0b21eb7108ffaceb /Lib/defconQt/__main__.py | |
| parent | 759d466a0ce2208d7187463fde12b5f974a23b42 (diff) | |
| download | trufont-4f484fb40a051171edfd7c0c0ccabdae8089a223.tar.bz2 | |
fontView: resist to malformed glyphList
Diffstat (limited to 'Lib/defconQt/__main__.py')
| -rw-r--r-- | Lib/defconQt/__main__.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| 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_()) | 
