release 0.47
[catagits/Catalyst-Model-DBIC-Schema.git] / lib / Catalyst / Helper / Model / DBIC / Schema.pm
index 4ed267b..a787349 100644 (file)
@@ -4,7 +4,7 @@ use namespace::autoclean;
 use Moose;
 no warnings 'uninitialized';
 
-our $VERSION = '0.46';
+our $VERSION = '0.47';
 $VERSION = eval $VERSION;
 
 use Carp;
@@ -443,7 +443,7 @@ sub _build_result_namespace {
 
         return 'Result' if $@;
 
-        return DBIx::Class::Schema::Loader->VERSION('0.05') ? 'Result' : '';
+        return try { DBIx::Class::Schema::Loader->VERSION('0.05') } ? 'Result' : '';
     }
 
     open my $fh, '<', $schema_pm or die "Could not open $schema_pm: $!";