fix error message
This commit is contained in:
parent
0d632b1d88
commit
bf8adf4a65
@ -163,8 +163,8 @@ class Image(object):
|
|||||||
def main():
|
def main():
|
||||||
for i in ['gm', 'ffmpeg']:
|
for i in ['gm', 'ffmpeg']:
|
||||||
if os.system("which " + i +" > /dev/null") != 0:
|
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 "
|
sys.stderr.write("ERROR: I can't locate the "+ i +" binary,
|
||||||
"images, please install the '" + i + "' package.\n")
|
please install the '" + i + "' package.\n")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a "
|
error(os.path.exists(os.path.join(os.getcwd(), "settings.yaml")), "I can't find a "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user