import.py: Dont check for users existence while just sanitizing.

This ends the context of commit b4bb45ef85
and 108492db3f with an awesome little
detail, which provides SO MUCH value.
This commit is contained in:
Darksider3 2020-05-30 16:50:49 +02:00
parent 108492db3f
commit e2c2bcb0c2

View file

@ -84,7 +84,7 @@ if __name__ == "__main__":
if not os.path.isfile(args.file):
print(f"File {args.file} doesnt exist")
exit(1)
sanitized = lib.Validator.checkImportFile(args.file, config['DEFAULT']['applications_db'])
sanitized = lib.Validator.checkImportFile(args.file, config['DEFAULT']['applications_db'], False)
if sanitized is not True:
print(sanitized)
else: