Increase timeout threshold for freshness

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:28 -04:00
parent 00482aec06
commit 08c8be66b3
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import re
import json import json
try: try:
nrout = subprocess.run(["/usr/sbin/needrestart", "-b"], timeout=5, stdout=subprocess.PIPE, stderr=subprocess.PIPE) nrout = subprocess.run(["/usr/sbin/needrestart", "-b"], timeout=15, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
except subprocess.TimeoutExpired: except subprocess.TimeoutExpired:
exit(2) exit(2)
except Exception: except Exception: