Skip to content

Commit c1dc58d

Browse files
author
SebB
committed
fix: Import correct YAML library to resolve compatibility issue
1 parent d58dba0 commit c1dc58d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/feeds-config-generator/intelmq_gen_feeds_conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import json
88
import sys
99

1010
try:
11-
import yaml
11+
from ruamel.yaml import YAML
12+
yaml = YAML(typ="safe", pure=True)
1213
except ImportError:
1314
print("[-] Please install yaml using the following command: 'pip install pyyaml'.", file=sys.stderr)
1415
sys.exit(-1)

0 commit comments

Comments
 (0)