We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b03e759 commit 8152716Copy full SHA for 8152716
lib/pyfiglet.py
@@ -90,7 +90,10 @@ def preloadFont(cls, font):
90
Load font data if exist
91
"""
92
font_path = os.path.join('lib', 'fonts', '%s.flf' % font)
93
- return get_resource('ASCIIPresentation', font_path, 'ascii')
+ data = get_resource('ASCII Presentation', font_path, 'ascii')
94
+ if data is None:
95
+ raise FontNotFound(font)
96
+ return data
97
98
@classmethod
99
def infoFont(cls, font, short=False):
0 commit comments