Skip to content

Commit 196f2ee

Browse files
committed
fix safety scan
1 parent 19269a0 commit 196f2ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dojo/tools/safety/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import urllib
23
from dojo.models import Finding
34

45

@@ -8,7 +9,7 @@ def __init__(self, json_output, test):
89
# Grab Safety DB for CVE lookup
910
url = "https://raw.githubusercontent.com/pyupio/safety-db/master/data/insecure_full.json"
1011
response = urllib.request.urlopen(url)
11-
safety_db = json.loads(response.read())
12+
safety_db = json.loads(response.read().decode('utf-8'))
1213

1314
tree = self.parse_json(json_output)
1415

0 commit comments

Comments
 (0)