fix issues that causes modules not to load if one file raises error
fix issues that causes modules not to load if one file raises error

the try should be inside the loop for each file.

https://github.com/saltstack/salt/issues/23039
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt