From: Ash Berlin Date: Tue, 11 Mar 2008 15:10:50 +0000 (+0000) Subject: Make throw_exception in RS a bit more forgiving too X-Git-Tag: v0.08240~534 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0f7557a2d1f00935aee40823ad1389931a44fed0;p=dbsrgits%2FDBIx-Class.git Make throw_exception in RS a bit more forgiving too --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index b30efa2..011d7da 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -2132,7 +2132,7 @@ See L for details. sub throw_exception { my $self=shift; - if (ref $self) { + if (ref $self && $self->_source_handle->schema) { $self->_source_handle->schema->throw_exception(@_) } else { croak(@_);