From 4e8d929b196da6fac2a84308ee6cc6ed9ad4ff7f Mon Sep 17 00:00:00 2001 From: Will Budic Date: Thu, 20 Feb 2020 08:23:27 +1100 Subject: [PATCH] throw Exception don't die. --- htdocs/cgi-bin/login_ctr.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/cgi-bin/login_ctr.cgi b/htdocs/cgi-bin/login_ctr.cgi index 458979f..93d3082 100755 --- a/htdocs/cgi-bin/login_ctr.cgi +++ b/htdocs/cgi-bin/login_ctr.cgi @@ -167,8 +167,7 @@ sub checkCreateTables { $today-> set_time_zone( &Settings::timezone ); my $database = &Settings::logPath.'data_'.$alias.'_log.db'; my $dsn= "DBI:SQLite:dbname=$database"; - my $db = DBI->connect($dsn, $alias, $passw, { RaiseError => 1 }) - or LifeLogException->throw($DBI::errstri); + my $db = DBI->connect($dsn, $alias, $passw, { RaiseError => 1 }) or LifeLogException->throw($DBI::errstri); my $rv; my $changed = 0; # We live check database for available tables now only once. -- 2.34.1