fix error message

This commit is contained in:
Adrien Beudin 2016-05-02 17:08:41 +02:00
parent 0d632b1d88
commit bf8adf4a65

View File

@ -163,8 +163,8 @@ class Image(object):
def main():
for i in ['gm', 'ffmpeg']:
if os.system("which " + i +" > /dev/null") != 0:
sys.stderr.write("ERROR: I can't locate the "+ i +" binary, I won't be able to resize "
"images, please install the '" + i + "' package.\n")
sys.stderr.write("ERROR: I can't locate the "+ i +" binary,
please install the '" + i + "' package.\n")
sys.exit(1)
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a "