Populates documentation.

This commit is contained in:
Aaron Louie 2020-03-02 13:14:03 -05:00
parent 5f944af0d7
commit b0c4996fb3
1 changed files with 1 additions and 4 deletions

View File

@ -52,10 +52,7 @@ class Task(object):
@classmethod
def from_spiff(cls, spiff_task):
try:
documentation = spiff_task.task_spec.documentation
except AttributeError:
documentation = ""
documentation = spiff_task.task_spec.documentation if hasattr(spiff_task.task_spec, "documentation") else ""
instance = cls(spiff_task.id,
spiff_task.task_spec.name,
spiff_task.task_spec.description,