fix when backend support error
This commit is contained in:
@@ -72,10 +72,20 @@ def main():
|
||||
str(path): SigmaCollectionParser(path.open(encoding='utf-8').read())
|
||||
for path in paths
|
||||
}
|
||||
converted = {
|
||||
str(path): list(sigma_collection.generate(backend))
|
||||
for path, sigma_collection in parsed.items()
|
||||
}
|
||||
|
||||
# converted = {
|
||||
# str(path): list(sigma_collection.generate(backend))
|
||||
# for path, sigma_collection in parsed.items()
|
||||
# }
|
||||
converted = {}
|
||||
for path, sigma_collection in parsed.items():
|
||||
try:
|
||||
value = list(sigma_collection.generate(backend))
|
||||
key = str(path)
|
||||
converted[key] = value
|
||||
except :
|
||||
continue #when Raise NotImplementedError: Base backend doesn't support multiple conditions
|
||||
|
||||
converted_flat = (
|
||||
(path, i, normalized)
|
||||
for path, nlist in converted.items()
|
||||
|
||||
Reference in New Issue
Block a user