PICARD-915: Handle Attribute errors to return None

This commit is contained in:
Sambhav Kothari
2017-01-18 05:17:59 +05:30
parent 849f1ab968
commit 5f680306ff

View File

@@ -203,6 +203,13 @@ class PluginData(PluginShared):
super(PluginData, self).__init__()
self.module_name = module_name
def __getattribute__(self, name):
try:
return PluginShared.__getattribute__(self, name)
except AttributeError:
log.debug('Attribute %r not found for plugin %r', name, self.module_name)
return None
@property
def files_list(self):
return ", ".join(self.files.keys())