Skip to content

Extra argument in log function #19

Description

@Julien-Elie

I've just noticed in PyClean traceback file:

Traceback (most recent call last):
File "/home/news/bin/filter/filter_innd.py", line 349, in filter_art
return self.pyfilter.filter(art)
File "/home/news/bin/filter/filter_innd.py", line 1007, in filter
if do_lphn and self.emp_lphn.add(fodder + ngs):
File "/home/news/bin/filter/filter_innd.py", line 1491, in add
logging.error(logmes % (self.stats['name'], decrement))
TypeError: not all arguments converted during string formatting

Seems like:

 logmes = "%s: Invalid attempt to trim by less than 1"
logging.error(logmes % (self.stats['name'], decrement))

could be changed to:

 logmes = "%s: Invalid attempt to trim by less than 1"
logging.error(logmes % (self.stats['name']))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions