diff --git a/api/moodle.py b/api/moodle.py index f4104e6..cc97b11 100644 --- a/api/moodle.py +++ b/api/moodle.py @@ -122,7 +122,7 @@ class MoodleAPI(): return [{ 'name': " ".join( link.text.split(' ')[:-1] ), 'type': link.text.split(' ')[-1], - 'link': link.find('a').get('href') + 'link': link.find('a').get('href') if link.find('a') != None else "" } for link in links] else: return None