Skip to content

Commit

Permalink
Catching exception when options are not populated.
Browse files Browse the repository at this point in the history
  • Loading branch information
whart222 committed Oct 29, 2016
1 parent fce26d4 commit 7651c4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyutilib/component/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,10 @@ def enabled(self):
"""Return value indicating if this plugin is enabled"""
enable = self._enable
if hasattr(enable, 'get_value'):
enable = self._enable.get_value()
try:
enable = enable.get_value()
except:
enable = None
return enable

def __repr__(self, simple=False):
Expand Down

0 comments on commit 7651c4a

Please sign in to comment.