Skip to content

Commit

Permalink
Merge pull request #150 from NIAEFEUP/fix/professor-login
Browse files Browse the repository at this point in the history
fix: professor federated login
  • Loading branch information
tomaspalma authored Feb 1, 2025
2 parents e427e26 + bce00a7 commit e1566e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django/university/controllers/SigarraController.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_student_festid(self, nmec):
if profile.status_code != 200:
return None

courses = json.loads(profile.data)["cursos"]
try:
courses = json.loads(profile.data)["cursos"]
except json.decoder.JSONDecodeError:
return None

return list(map(lambda course: {
"fest_id": course["fest_id"],
Expand Down

0 comments on commit e1566e3

Please sign in to comment.