baverman/supplement — Issue #10: TypeError in fixer
Author: baverman
Created: 2012-02-20 11:42:29+00:00
State: open

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/supplement/server.py", line 65, in process
result = getattr(self, name)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/supplement/server.py", line 78, in assist
return assist(self.get_project(path), source, position, filename)
File "/usr/lib/python2.7/site-packages/supplement/assistant.py", line 287, in assist
ast_nodes, fixed_source = fix(source)
File "/usr/lib/python2.7/site-packages/supplement/fixer.py", line 150, in fix
code, fixed_location = try_to_fix(e, code)
File "/usr/lib/python2.7/site-packages/supplement/fixer.py", line 99, in try_to_fix
if error.text[:error.offset-1].rstrip().endswith('.'):
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'