summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/python-development-shell.rst
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2024-10-10 19:45:45 +0200
committerSteve Sakoman <steve@sakoman.com>2024-11-26 05:37:09 -0800
commit3d90719ae34e5ebcd79bb512d0fe3b7009b607f7 (patch)
tree86d86bf5f67252a9526ebe62448541dfb2557abd /documentation/dev-manual/python-development-shell.rst
parent29732ee9dacc970f6bf68da5a44db5db517ea238 (diff)
downloadpoky-3d90719ae34e5ebcd79bb512d0fe3b7009b607f7.tar.gz
package_rpm: Check if file exists before open()
Exception handler tries to read() /etc/passwd file in sysroot and if file doesn't exist for any reason then it raises FileNotFoundError exception which mask the original source of the problem and makes debugging of the issue more difficult. Fixes: Exception: FileNotFoundError: [Errno 2] No such file or directory: '/codebuild/output/src1899304708/src/build/tmp-container/work/core2-64-oe-linux/emqx-bin/4.3.12/recipe-sysroot/etc/passwd' (From OE-Core rev: 17c8560f323d619b4a98d2276b4c0bf04c8196fd) Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4ad9a0e0b11eb7bc5a3dd45fc8945e094ea949e9) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/dev-manual/python-development-shell.rst')
0 files changed, 0 insertions, 0 deletions