diff --git a/swh/lister/cgit/lister.py b/swh/lister/cgit/lister.py
index 4f55e36b331d886e5fa313e16a5b05b9bf72732b..9a19cd5891351250a62badddabdf21a7bf7b99d7 100644
--- a/swh/lister/cgit/lister.py
+++ b/swh/lister/cgit/lister.py
@@ -112,10 +112,7 @@ class CGitLister(StatelessLister[Repositories]):
                     repo_url = base_url
 
                 span = tr.find("span", {"class": re.compile("age-")})
-                if span:
-                    last_updated_date = span["title"]
-                else:
-                    last_updated_date = None
+                last_updated_date = span.get("title") if span else None
 
                 page_results.append(
                     {