Skip to content

Commit

Permalink
fixup! squash! squash! squash! stdlib.run: Fix problems when an execu…
Browse files Browse the repository at this point in the history
…table is missing
  • Loading branch information
pirat89 committed Aug 2, 2023
1 parent c840c61 commit 27e7cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leapp/libraries/stdlib/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def _call(command, callback_raw=lambda fd, value: None, callback_linebuffered=la
# not available for Python2. We are going to address the problem in future
# (e.g. when we drop support for Python 2).
# https://peps.python.org/pep-0632/
if not find_executable(args[0], _path):
raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), args[0])
if not find_executable(command[0], _path):
raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), command[0])

# Create a separate pipe for stdout/stderr
#
Expand Down

0 comments on commit 27e7cd4

Please sign in to comment.