Fix regression finding description for an undescribed repository.
Zachary Stevens [Sat, 14 Nov 2009 01:03:59 +0000 (01:03 +0000)]
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 {