diff --git a/script.py b/script.py
index d72ce151a43680feee21f3c83c20aaf0507e85b2..a9383d8efb2b84f1d68ffaf23cc6230106c27a39 100644
--- a/script.py
+++ b/script.py
@@ -81,7 +81,7 @@ def get_total_commits_last_month(gl):
         try:
             commits = project.commits.list(since=last_month_start, until=last_month_end)
             total_commits_last_month += len(commits)
-        except gitlab.exceptions.GitlabHttpError as e:
+        except gitlab.exceptions.GitlabListError as e:
             if e.response_code == 404:
                 # Repository not found for the project
                 print(f"Warning: Repository not found for project '{project.name}'")