Skip to content

AttributeError: 'NoneType' object has no attribute 'strip' #116

@ErichBSchulz

Description

@ErichBSchulz

Issue

in 88.13

agent multi>                                                                                                                                          
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-14155' coro=<Coder.get_input() done, defined at /home/erich/aider-ce/aider/coders/base_coder.py:1313> exception=AttributeError("'NoneType' object has no attribute 'strip'")>
Traceback (most recent call last):
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 641, in run_until_complete
    self.run_forever()
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
    self._run_once()
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/base_events.py", line 1898, in _run_once
    event_list = self._selector.select(timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/selectors.py", line 468, in select
    fd_event_list = self._selector.poll(timeout, max_ev)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/erich/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/asyncio/runners.py", line 157, in _on_sigint
    raise KeyboardInterrupt()
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/erich/aider-ce/aider/coders/base_coder.py", line 1320, in get_input
    return await self.io.get_input(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/erich/aider-ce/aider/io.py", line 904, in get_input
    if line.strip("\r\n") and not multiline_input:
       ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

Version and model info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions