don't fail in xrandr_facts.py if nvidia-smi is not available
This commit is contained in:
parent
f302e4e06c
commit
9860f607a0
@ -4232,6 +4232,9 @@ def collect_nvidia_data():
|
||||
universal_newlines=True)
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
except OSError:
|
||||
# nvidia-smi is not installed
|
||||
pass
|
||||
else:
|
||||
for row in csv.DictReader(data.splitlines(), delimiter=',', skipinitialspace=True):
|
||||
name = row['name']
|
||||
|
@ -197,6 +197,9 @@ def collect_nvidia_data():
|
||||
universal_newlines=True)
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
except OSError:
|
||||
# nvidia-smi is not installed
|
||||
pass
|
||||
else:
|
||||
for row in csv.DictReader(data.splitlines(), delimiter=',', skipinitialspace=True):
|
||||
name = row['name']
|
||||
|
Loading…
Reference in New Issue
Block a user