X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/e38b0b21c1e924cb0b1a21f6e2fe5db7d3258f70..abc355d2775cda30c745a277faf1307acb5a249b:/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 {