From 7b65bd89f8007ee13e2aef740e09fc23327b8efb Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 7 Mar 2021 08:26:55 -0800 Subject: [PATCH] only complain about there not being a db when there should be one --- lib/Debbugs/Bug.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Debbugs/Bug.pm b/lib/Debbugs/Bug.pm index fefb493..b3e95cd 100644 --- a/lib/Debbugs/Bug.pm +++ b/lib/Debbugs/Bug.pm @@ -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(); } -- 2.39.2