mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
Don't skip begin_work() if commit() fails
This commit is contained in:
parent
11efde4d0d
commit
ae6f3a6b3d
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user