Commit 659728a0 authored by wenjie.zheng's avatar wenjie.zheng

Worklist.py: fix a hasattr error.

parent d19f1067
......@@ -137,7 +137,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
elif id == 'simulation_state':
matches_id_list = self.getMatchedSimulationStateList()
for state_id in matches_id_list:
if hasattr(self.getParent(), state_id, None):
if hasattr(self.getParent(), state_id):
matches_ref_list.append(self.getParent()._getOb(state_id).getReference())
matches = tuple(matches_ref_list)
if id == 'causality_state':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment