Move all initial access into try/except block

This commit is contained in:
Andrew Case
2025-02-07 13:14:11 -06:00
parent 968241aedd
commit 9c5b016932
@@ -342,14 +342,13 @@ class LinuxUtilities(interfaces.configuration.VersionableInterface):
try:
files = task.files
fd_table = files.get_fds()
if fd_table == 0:
return None
max_fds = files.get_max_fds()
except exceptions.InvalidAddressException:
return None
if fd_table == 0:
return None
max_fds = files.get_max_fds()
# corruption check
if max_fds > 500000:
return None