From 1aeab1dce28ce4624362a9709ff5e6f5576fc831 Mon Sep 17 00:00:00 2001
From: Jakub Dylag <jjd1c23@soton.ac.uk>
Date: Tue, 8 Apr 2025 23:22:32 +0100
Subject: [PATCH] (bug) phen.py code_errors mask cannot be None

---
 acmc/phen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acmc/phen.py b/acmc/phen.py
index d2a1787..abea461 100644
--- a/acmc/phen.py
+++ b/acmc/phen.py
@@ -735,7 +735,7 @@ def _write_code_errors(code_errors: list, code_errors_path: Path):
                 "SOURCE": err.codes_file,
                 "CAUSE": err.message,
             }
-            for err in code_errors
+            for err in code_errors if err.mask is not None
         ]
     )
 
-- 
GitLab