Don't skip begin_work() if commit() fails

This commit is contained in:
Pragmatic Software 2014-05-13 15:18:33 +00:00
parent 11efde4d0d
commit ae6f3a6b3d
2 changed files with 2 additions and 2 deletions

View File

@ -643,11 +643,11 @@ sub commit_message_history {
#$self->{pbot}->logger->log("Commiting $self->{new_entries} messages to SQLite\n");
eval {
$self->{dbh}->commit();
$self->{dbh}->begin_work();
};
$self->{pbot}->logger->log("SQLite error $@ when committing $self->{new_entries} entries.\n") if $@;
$self->{dbh}->begin_work();
$self->{new_entries} = 0;
}
}

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 570,
BUILD_REVISION => 571,
BUILD_DATE => "2014-05-13",
};