Replace the exception handling on loading the layers by an if statement.It is not necessary to us the exception there. The Filepath creation now use os.path.join to build the path.