Description: The directory-tree handling code is poorer quality than the Zip
 file code. This corrects some non-existant variable accessing.
Author: Stefano Rivera <stefano@rivera.za.net>
Forwarded: https://sourceforge.net/tracker/?func=detail&aid=2939614&group_id=200820&atid=975076
Last Update: 2010-01-25

--- a/pyfiglet.py
+++ b/pyfiglet.py
@@ -104,13 +104,13 @@
 
 			header = data.pop(0)
 			if self.reMagicNumber.search(header) is None:
-				raise FontError, '%s is not a valid figlet font' % fontPath
+				raise FontError, '%s is not a valid figlet font' % self.font
 
 			header = self.reMagicNumber.sub('', header)
 			header = header.split()
 			
 			if len(header) < 6:
-				raise FontError, 'malformed header for %s' % fontPath
+				raise FontError, 'malformed header for %s' % self.font
 
 			hardBlank = header[0]
 			height, baseLine, maxLength, oldLayout, commentLines = map(int, header[1:6])
