0001-use-repr-on-logging-invalid-status-24245.patch
wcs/wf/wscall.py | ||
---|---|---|
395 | 395 |
self.parent.parent.get_status(action) |
396 | 396 |
except KeyError: |
397 | 397 |
try: |
398 |
raise IndexError('reference to invalid status %s in workflow %s, status %s' % (
|
|
398 |
raise IndexError('reference to invalid status %r in workflow %r, status %r' % (
|
|
399 | 399 |
action, self.parent.parent.name, self.parent.name)) |
400 | 400 |
except IndexError as e: |
401 | 401 |
get_publisher().notify_of_exception(sys.exc_info(), context='[WSCALL]') |
... | ... | |
416 | 416 |
target = self.parent.parent.get_status(value) |
417 | 417 |
except KeyError: |
418 | 418 |
get_publisher().get_app_logger().error( |
419 |
'reference to invalid status in workflow %s, status %s, item %s' % (
|
|
419 |
'reference to invalid status in workflow %r, status %r, item %r' % (
|
|
420 | 420 |
self.parent.parent.name, |
421 | 421 |
self.parent.name, |
422 | 422 |
self.description)) |
wcs/workflows.py | ||
---|---|---|
1727 | 1727 |
targets = [x for x in self.parent.parent.possible_status if x.id == self.status] |
1728 | 1728 |
if not targets: |
1729 | 1729 |
get_publisher().get_app_logger().error( |
1730 |
'reference to invalid status in workflow %s, status %s, item %s' % (
|
|
1730 |
'reference to invalid status in workflow %r, status %r, item %r' % (
|
|
1731 | 1731 |
self.parent.parent.name, |
1732 | 1732 |
self.parent.name, |
1733 | 1733 |
self.description)) |
1734 |
- |