SImplify a bit the file validation

This commit is contained in:
jvoisin 2015-06-04 22:55:21 +02:00
parent 61a4b9c866
commit ed03ea1252

View File

@ -244,12 +244,8 @@ def main():
# validation
if filenames:
valid = True
for filename in filenames:
if not os.path.exists(filename):
if any(not os.path.isfile(filename) for filename in filenames)
alert(strings._("not_a_file", True).format(filename))
valid = False
if not valid:
sys.exit()
# create the onionshare icon