Commit 06725af4 authored by missionfloyd's avatar missionfloyd Committed by GitHub

Lint

parent 639ccf25
......@@ -120,12 +120,12 @@ def run(command, desc=None, errdesc=None, custom_env=None, live: bool = default_
def is_installed(package):
try:
dist = importlib.metadata.distribution(package)
dist = importlib.metadata.distribution(package)
except importlib.metadata.PackageNotFoundError:
try:
try:
spec = importlib.util.find_spec(package)
except ModuleNotFoundError:
return False
return False
return spec is not None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment