Added Error handling for missing input file
This commit is contained in:
parent
7fc87e6be9
commit
a0ed152846
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ def main(argv):
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Check input and output files
|
# 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")
|
print("Error: input file is not a valid File or doesn't exist")
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue