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

Do not check for file if variable is None.

parent c65269ff
...@@ -180,8 +180,9 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple): ...@@ -180,8 +180,9 @@ 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 not os.path.exists(f): if f is not None:
parser.error('File %r does not exists.' % f) if not os.path.exists(f):
parser.error('File %r does not exists.' % f)
certificate_repository_path = option_dict.get('certificate_repository_path') certificate_repository_path = option_dict.get('certificate_repository_path')
if certificate_repository_path is not None: if certificate_repository_path is not None:
......
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