Update pipelines.py: fix checking self.proc (#5794)
Some checks failed
Build and deploy docs / Xonsh docs to gh-pages (push) Has been cancelled
CI Tests / Test Python 3.10 macOS-latest (push) Has been cancelled
CI Tests / Test Python 3.11 macOS-latest (push) Has been cancelled
CI Tests / Test Python 3.12 macOS-latest (push) Has been cancelled
CI Tests / Test Python 3.13 macOS-latest (push) Has been cancelled
CI Tests / Test Python 3.10 ubuntu-latest (push) Has been cancelled
CI Tests / Test Python 3.11 ubuntu-latest (push) Has been cancelled
CI Tests / Test Python 3.12 ubuntu-latest (push) Has been cancelled
CI Tests / Test Python 3.13 ubuntu-latest (push) Has been cancelled
CI Tests / Test Python 3.10 windows-latest (push) Has been cancelled
CI Tests / Test Python 3.11 windows-latest (push) Has been cancelled
CI Tests / Test Python 3.12 windows-latest (push) Has been cancelled
CI Tests / Test Python 3.13 windows-latest (push) Has been cancelled

* Update pipelines.py

* Create pipelines_fix_check_self_proc.rst
This commit is contained in:
Andy Kipp 2025-02-14 22:39:10 +06:00 committed by GitHub
parent 5dde2304e9
commit 71d4920ac5
Failed to generate hash of commit
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* pipelines: fixed ``'NoneType' object has no attribute 'pid'`` exception (#5794).
**Security:**
* <news item>

View file

@ -727,7 +727,7 @@ class CommandPipeline:
@property
def pid(self):
"""Process identifier."""
return self.proc.pid
return self.proc.pid if self.proc else None
@property
def returncode(self):