Do not ignore error from calling Inkscape

This commit is contained in:
Suzanne Soy 2021-01-31 20:22:16 +00:00
parent 57521f129a
commit 15e98ff2cf

View File

@ -551,7 +551,10 @@ def createCover():
fil = open(path,'wb') fil = open(path,'wb')
fil.write(data) fil.write(data)
fil.close() fil.close()
os.system('inkscape --export-pdf='+os.path.join(FOLDER,'Cover.pdf')+' '+os.path.join(FOLDER,'Cover.svg')) if os.system('inkscape --export-pdf='+os.path.join(FOLDER,'Cover.pdf')+' '+os.path.join(FOLDER,'Cover.svg')) == 0:
return
else:
raise Exception('Conversion of Cover.svg to Cover.pdf failed. Is Inkscape installed?')
if __name__ == "__main__": if __name__ == "__main__":