Commit 9375271c authored by Łukasz Nowak's avatar Łukasz Nowak

Do not check for file if variable is None.

parent c65269ff
...@@ -180,6 +180,7 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -180,6 +180,7 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
mandatory_file_list.append(signature_private_key_file) mandatory_file_list.append(signature_private_key_file)
for f in mandatory_file_list: for f in mandatory_file_list:
if f is not None:
if not os.path.exists(f): if not os.path.exists(f):
parser.error('File %r does not exists.' % f) parser.error('File %r does not exists.' % f)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment