improve consistency

This commit is contained in:
Jason Ertel
2025-05-14 09:23:35 -04:00
parent 7fe9e2cbfd
commit 82562f89f6
2 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ def check_for_fps():
result = subprocess.run([feat_full + '-mode-setup', '--is-enabled'], stdout=subprocess.PIPE)
if result.returncode == 0:
fps = 1
except FileNotFoundError:
except:
fn = '/proc/sys/crypto/' + feat_full + '_enabled'
try:
with open(fn, 'r') as f: