Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running debuggers inside
airflow tasks test
(#26806)
As part of 2.3.3 we added redaction to output from the tasks test command, but unfortunately that broke using a debugger with this error: ``` File "/usr/lib/python3.10/pdb.py", line 262, in user_line self.interaction(frame, None) File "/home/ash/.virtualenvs/airflow/lib/python3.10/site-packages/pdb.py", line 231, in interaction self._cmdloop() File "/usr/lib/python3.10/pdb.py", line 322, in _cmdloop self.cmdloop() File "/usr/lib/python3.10/cmd.py", line 126, in cmdloop line = input(self.prompt) TypeError: 'NoneType' object cannot be interpreted as an integer ``` (ipdb has a similar but different error) The "fix" is to assign a fileno attribute to the object. `input()` needs this to write the prompt. It feels like a "bug" that it doesn't work without it, but as this class is only used in `tasks test` this is a safe change
- Loading branch information