mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 12:17:38 +02:00
Improve the error handling the LinuxSymbolCache.
This commit is contained in:
@@ -47,8 +47,12 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface):
|
||||
# Favour specific name, over uncompressed JSON (user-editable), over compressed JSON over uncompressed files
|
||||
for extension in ['.json', '.json.xz']:
|
||||
# Hopefully these will not be large lists, otherwise this might be slow
|
||||
cacheables += [x.as_uri() for x in
|
||||
pathlib.Path(path).joinpath('linux').resolve().rglob('*' + extension)]
|
||||
try:
|
||||
cacheables += [x.as_uri() for x in
|
||||
pathlib.Path(path).joinpath('linux').resolve().rglob('*' + extension)]
|
||||
except FileNotFoundError:
|
||||
# If there's no linux symbols, don't cry about it
|
||||
pass
|
||||
|
||||
for banner in linuxbanners:
|
||||
for json_file in linuxbanners[banner]:
|
||||
|
||||
Reference in New Issue
Block a user