Projet

Général

Profil

0001-logs-use-instead-of-24245.patch

Thomas Noël, 06 juin 2018 14:20

Télécharger (2,56 ko)

Voir les différences:

Subject: [PATCH] logs: use , instead of % (#24245)

 wcs/wf/wscall.py | 8 +++-----
 wcs/workflows.py | 6 ++----
 2 files changed, 5 insertions(+), 9 deletions(-)
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' % (
420
                                self.parent.parent.name,
421
                                self.parent.name,
422
                                self.description))
419
                    'reference to invalid status in workflow %s, status %s, item %s',
420
                    self.parent.parent.name, self.parent.name, self.description)
423 421
                continue
424 422
            targets.append(target)
425 423
        return targets
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' % (
1731
                                    self.parent.parent.name,
1732
                                    self.parent.name,
1733
                                    self.description))
1730
                            'reference to invalid status in workflow %s, status %s, item %s',
1731
                            self.parent.parent.name, self.parent.name, self.description)
1734 1732
        return targets
1735 1733

  
1736 1734
    def get_jump_label(self):
1737
-