Added Error handling for missing input file

This commit is contained in:
seiichiro 2012-08-29 10:51:57 +02:00
parent 7fc87e6be9
commit a0ed152846

View file

@ -102,7 +102,7 @@ def main(argv):
sys.exit(1)
# Check input and output files
if not os.path.isfile(input):
if (input == None or not os.path.isfile(input)):
print("Error: input file is not a valid File or doesn't exist")
sys.exit(2)