diff --git a/script.py b/script.py
index b213155106d570cd3e813f63b9ca4d4b68f97545..d72ce151a43680feee21f3c83c20aaf0507e85b2 100644
--- a/script.py
+++ b/script.py
@@ -78,8 +78,16 @@ def get_total_commits_last_month(gl):
     total_commits_last_month = 0
     projects = gl.projects.list(all=True)
     for project in projects:
-        commits = project.commits.list(since=last_month_start, until=last_month_end)
-        total_commits_last_month += len(commits)
+        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:
+            if e.response_code == 404:
+                # Repository not found for the project
+                print(f"Warning: Repository not found for project '{project.name}'")
+            else:
+                # Other GitLab API error
+                print(f"Error: GitLab API error for project '{project.name}': {e}")
 
     return total_commits_last_month
 
@@ -113,7 +121,7 @@ def get_gitlab_info(api_token):
     print("Auth successful")
 
     # Get the number of projects
-    projects = gl.projects.list()
+    projects = gl.projects.list(all=True)
     num_projects = len(projects)
     print(f"Number of projects: {num_projects}")