From 2bddbfed06ad2afc674b8c1cfac0d23179cc4731 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Tue, 23 Oct 2007 18:47:08 +0000 Subject: [PATCH] use AFM exception git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2934 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/font/afmfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyx/font/afmfile.py b/pyx/font/afmfile.py index b5180366..ec9ba183 100644 --- a/pyx/font/afmfile.py +++ b/pyx/font/afmfile.py @@ -484,7 +484,7 @@ class AFMfile: elif mstate == _READ_COMPOSITES: state = self._processline_composites(line, sstate) else: - raise RuntimeError("Undefined state in AFM reader") + raise AFMError("Undefined state in AFM reader") finally: f.close() -- 2.11.4.GIT