@@ -33,8 +33,8 @@ def __init__(self, opts):
33
33
self .fail = 0
34
34
self .failed = []
35
35
self .oked = []
36
- # known bugs..
37
- self .skip = ['runic' , 'pyramid' , 'eftifont' , 'DANC4' , 'dietcola' ]
36
+ # known bugs...
37
+ self .skip = ['runic' , 'pyramid' , 'eftifont' , 'DANC4' , 'dietcola' ]
38
38
# Toilet fonts that we don't handle identically, yet
39
39
self .skip += ['emboss' , 'emboss2' , 'future' , 'letter' , 'pagga' ,
40
40
'smblock' , 'smbraille' , 'wideterm' ]
@@ -48,16 +48,14 @@ def outputUsingFigletorToilet(self, text, font, fontpath):
48
48
elif os .path .isfile (fontpath + '.tlf' ):
49
49
cmd = ('toilet' , '-d' , 'pyfiglet/fonts' , '-f' , font , text )
50
50
else :
51
- raise Exception ('Missing font file: ' + fontpath )
51
+ raise Exception ('Missing font file: {}' . format ( fontpath ) )
52
52
53
53
p = Popen (cmd , bufsize = 4096 , stdout = PIPE )
54
54
try :
55
55
outputFiglet = p .communicate ()[0 ].decode ('utf8' )
56
56
except UnicodeDecodeError as e :
57
57
print ("Unicode Error handling font {}" .format (font ))
58
58
outputFiglet = ''
59
- except e :
60
- raise e
61
59
return outputFiglet
62
60
63
61
def validate_font_output (self , font , outputFiglet , outputPyfiglet ):
0 commit comments