mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
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
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:
parent
5dde2304e9
commit
71d4920ac5
2 changed files with 24 additions and 1 deletions
23
news/pipelines_fix_check_self_proc.rst
Normal file
23
news/pipelines_fix_check_self_proc.rst
Normal 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>
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue