0001-really-log-invalid-status-detection-23894.patch
wcs/workflows.py | ||
---|---|---|
1692 | 1692 |
return [previous_status] |
1693 | 1693 |
return [] |
1694 | 1694 | |
1695 |
try: |
|
1696 |
return [x for x in self.parent.parent.possible_status if x.id == self.status] |
|
1697 |
except IndexError: |
|
1695 |
targets = [x for x in self.parent.parent.possible_status if x.id == self.status] |
|
1696 |
if not targets: |
|
1698 | 1697 |
get_publisher().get_app_logger().error( |
1699 | 1698 |
'reference to invalid status in workflow %s, status %s, item %s' % ( |
1700 | 1699 |
self.parent.parent.name, |
1701 | 1700 |
self.parent.name, |
1702 | 1701 |
self.description)) |
1703 |
return []
|
|
1702 |
return targets
|
|
1704 | 1703 | |
1705 | 1704 |
def get_jump_label(self): |
1706 | 1705 |
'''Return the label to use on a workflow graph arrow''' |
1707 |
- |