The security folder is removed and try:except condition is included instead