Skip to content

Commit

Permalink
Merge 8cff125 into 1e8eb63
Browse files Browse the repository at this point in the history
  • Loading branch information
frmdstryr committed Feb 20, 2015
2 parents 1e8eb63 + 8cff125 commit 9244d32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package/yapsy/PluginManager.py
Expand Up @@ -508,8 +508,14 @@ def loadPlugins(self, callback=None):
if candidate_infofile not in self._category_file_mapping[current_category]:
# we found a new plugin: initialise it and search for the next one
if not plugin_info_reference:
plugin_info.plugin_object = element()
plugin_info_reference = plugin_info
try:
plugin_info.plugin_object = element()
plugin_info_reference = plugin_info
except Exception:
exc_info = sys.exc_info()
log.error("Unable to create plugin object: %s" % candidate_filepath, exc_info=exc_info)
plugin_info.error = exc_info
break # If it didn't work once it wont again
plugin_info.categories.append(current_category)
self.category_mapping[current_category].append(plugin_info_reference)
self._category_file_mapping[current_category].append(candidate_infofile)
Expand Down

0 comments on commit 9244d32

Please sign in to comment.