X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/660c7e5312f7fae7766b731f7001e5e8197c6887..3c54df1caad621161028c78d7fbb9cc3e5c900a9:/SL/DB.pm diff --git a/SL/DB.pm b/SL/DB.pm index 40c8a9596..29d0090ca 100644 --- a/SL/DB.pm +++ b/SL/DB.pm @@ -7,6 +7,7 @@ use Data::Dumper; use English qw(-no_match_vars); use Rose::DB; use Rose::DBx::Cache::Anywhere; +use Scalar::Util qw(blessed); use base qw(Rose::DB); @@ -138,7 +139,7 @@ sub with_transaction { : $self->do_transaction(sub { $result = $code->(@args) }); } or do { my $error = $self->error; - if (ref $error) { + if (blessed $error) { if ($error->isa('SL::X::DBError')) { # gobble the exception } else {