Commit 9ed4303d authored by Xavier Guimard's avatar Xavier Guimard

Don't fail on init() if DBI connection fails (#1496)

parent 5d05292c
...@@ -43,7 +43,9 @@ sub dbh { ...@@ -43,7 +43,9 @@ sub dbh {
# All DBI modules have just to verify that DBI connection is available # All DBI modules have just to verify that DBI connection is available
sub init { sub init {
my ($self) = @_; my ($self) = @_;
return $self->_dbh; $self->_dbh
or $self->logger->error("DBI connection has failed, but let's continue");
return 1;
} }
# RUNNING METHODS # RUNNING METHODS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment