Skip to content

Commit

Permalink
Fixed parse_json decoding (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavey-analygence authored Jul 10, 2024
1 parent 9822f22 commit 314a481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/spiders/dlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def parse_product(self, response):

def parse_json(self, response):
mib = None
json_response = json.loads(response.body_as_unicode())
json_response = json.loads(response.text)

for entry in reversed(json_response["item"]):
for file in reversed(entry["file"]):
Expand Down

0 comments on commit 314a481

Please sign in to comment.