diff --git a/assignment2/commit.go b/assignment2/commit.go
index c27774eb35d4351d463164ea46fea32ff2aad498..83f78f33ae7de37d4be5fe1c04c92b5ebe3a0fbe 100644
--- a/assignment2/commit.go
+++ b/assignment2/commit.go
@@ -85,7 +85,8 @@ func HandlerCommits(w http.ResponseWriter, r *http.Request) {
 
 		TempCommit, err := strconv.Atoi(resp.Header.Get("X-Total")) // gets total of commits
 		if err != nil {                                             //check for error
-			log.Fatal(err)
+			fmt.Println("Repository do not exist, ID: ", I[i].ID)
+			TempCommit = 0 // if repository do not exist, sets commit to 0
 		}
 
 		C.Repos[i].Commits = TempCommit // sets commits count in to C.Repos