Skip to content

Commit

Permalink
Tell subprocess to check for non-zero exit codes so apt exceptions ar…
Browse files Browse the repository at this point in the history
…e handled.
  • Loading branch information
nathandyer committed Jan 22, 2024
1 parent ab30b3b commit 5dc6ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def is_missing_dependency() -> bool:

try:
sdlog.info("Checking apt dependencies are installed")
apt_query_result = subprocess.run(apt_query, capture_output=True, text=True)
apt_query_result = subprocess.run(apt_query, capture_output=True, text=True, check=True)

# If any packages are marked as not installed, return 0
# If any packages are marked as not installed, we are missing dependencies
if "Installed: (none)" in apt_query_result.stdout:
return True

Expand Down

0 comments on commit 5dc6ac7

Please sign in to comment.