diff --git a/aleksis/apps/alsijil/model_extensions.py b/aleksis/apps/alsijil/model_extensions.py
index 926a67ec34e9e6e9c5040543cf427a830c9b3671..c53db9756eb99566b88b0ee86c680d7daf74a11e 100644
--- a/aleksis/apps/alsijil/model_extensions.py
+++ b/aleksis/apps/alsijil/model_extensions.py
@@ -44,8 +44,7 @@ def mark_absent(
     # Create and update all personal notes for the discovered lesson periods
     for lesson_period in lesson_periods:
         sub = lesson_period.get_substitution()
-        if sub:
-            if sub.is_cancelled:
+        if sub and sub.is_cancelled:
                 continue
 
         personal_note, created = PersonalNote.objects.update_or_create(