There was an error while loading. Please reload this page.
2 parents 0cc5e3e + 5a447a9 commit 17b6a26Copy full SHA for 17b6a26
1 file changed
extra_data/cli/check_readable.py
@@ -113,7 +113,10 @@ def monitor_access_check(path):
113
timeout=args.timeout, capture_output=True,
114
env={'OMP_NUM_THREADS': '1'})
115
except subprocess.TimeoutExpired as e:
116
- path_states[path] = e.stdout.decode().splitlines()[-1]
+ if e.stdout is None:
117
+ path_states[path] = "Status unknown, no output from check command"
118
+ else:
119
+ path_states[path] = e.stdout.decode().splitlines()[-1]
120
return 'T'
121
else:
122
path_states[path] = p.stdout.decode().splitlines()[-1]
@@ -158,4 +161,4 @@ def monitor_access_check(path):
158
161
159
162
160
163
if __name__ == '__main__':
- sys.exit(main())
164
+ sys.exit(main())
0 commit comments