diff --git a/netschoolapi/netschoolapi.py b/netschoolapi/netschoolapi.py index 40c96d5..2fb8266 100644 --- a/netschoolapi/netschoolapi.py +++ b/netschoolapi/netschoolapi.py @@ -250,7 +250,7 @@ async def attachments( response = response.json() if not response: return [] - attachments_json = response.json()[0]['attachments'] + attachments_json = response[0]['attachments'] attachments = schemas.Attachment().load(attachments_json, many=True) return [data.Attachment(**attachment) for attachment in attachments]