pull/16522/merge
Catena cyber 1 hour ago committed by GitHub
commit f4c0fa1564
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -47,6 +47,8 @@ def maybe_load_dataset_bytes(rules_file: Path, argument: str) -> bytes:
dataset_name = match.group(2)
dataset_path = (rules_file.parent / dataset_name).resolve()
if not dataset_path.is_file():
return b""
try:
return dataset_path.read_bytes()
except OSError:

Loading…
Cancel
Save