lamby/django-lint — Issue #7: TypeError: %d format: a number is required, not _Yes
Author: kostikvento
Created: 2011-10-09 11:54:00+00:00
State: open

Hello,

Here's what I get when using django-lint on Ubuntu 10.10 installed either from package or from git-cloned code:

Traceback (most recent call last):
File "./django-lint", line 25, in
sys.exit(script.main())
File "/home/kostik/distr/django-lint/DjangoLint/script.py", line 139, in main
linter.check([target])
File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 488, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 563, in check_astng_module
walker.walk(astng)
File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
self.walk(child)
File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
self.walk(child)
File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 516, in walk
self.walk(child)
File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 513, in walk
cb(astng)
File "/home/kostik/distr/django-lint/DjangoLint/AstCheckers/model_fields.py", line 154, in visit_callfunc
self.config.max_charfield_length,
File "/usr/lib/pymodules/python2.6/pylint/checkers/__init__.py", line 92, in add_message
self.linter.add_message(msg_id, line, node, args)
File "/usr/lib/pymodules/python2.6/pylint/utils.py", line 265, in add_message
msg %= args
TypeError: %d format: a number is required, not _Yes