Fix regression finding description for an undescribed repository.
[catagits/Gitalist.git] / lib / Gitalist / Git / Project.pm
index efcfbd6..1548e00 100644 (file)
@@ -316,7 +316,13 @@ FIXME Should this return objects?
     }
 
     method _build_description {
-        return $self->gpp->description;
+        eval {
+            return $self->gpp->description;
+        };
+        if ($@) {
+            return "Unnamed repository.";
+        }
+
     }
 
     method _build_owner {