Skip to content

Commit

Permalink
fix choco methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Dec 27, 2023
1 parent 1174532 commit ee5419b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cloudmesh/common/Shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def is_choco_installed():
r = Shell.run('choco --version')
# no problem
return True
except subprocess.CalledProcessError:
except RuntimeError:
return False

@staticmethod
Expand All @@ -613,7 +613,7 @@ def install_chocolatey():
r = Shell.run('choco --version')
Console.ok("Chocolatey already installed")
return True
except subprocess.CalledProcessError:
except RuntimeError:
Console.msg("Installing chocolatey...")
if not pyuac.isUserAdmin():
Console.error("Please run the terminal as administrator.")
Expand Down

0 comments on commit ee5419b

Please sign in to comment.