Fix refactoring
Using logging instead of traceback.
Moved the getattr call within get_plugins to the existing try and moved the execpt there as well.