]> git.donarmstrong.com Git - debbugs.git/blobdiff - lib/Debbugs/Bug.pm
only complain about there not being a db when there should be one
[debbugs.git] / lib / Debbugs / Bug.pm
index fefb49330959da92c19ce0093d49b4da91bf347c..b3e95cd1b266426323b638a190dce42e51d0b62e 100644 (file)
@@ -119,7 +119,9 @@ sub _build_package_collection {
     if ($self->has_schema) {
         return Debbugs::Collection::Package->new(schema => $self->schema);
     }
-    carp "No schema when building package collection";
+    if (defined $config{database}) {
+        carp "No schema when building package collection";
+    }
     return Debbugs::Collection::Package->new();
 }