don't check $@ after pagespec_translate
[ikiwiki.git] / IkiWiki / Render.pm
index af24df1550ee7682d649a79e046d0e604c39e0cf..abafb0887f32b0a6fcc25115b6ecb6be63bc4d6a 100644 (file)
@@ -565,7 +565,7 @@ sub render_dependent ($$$$$$$) {
                if (exists $depends{$p} && ! defined $reason) {
                        foreach my $dep (keys %{$depends{$p}}) {
                                my $sub=pagespec_translate($dep);
-                               next if $@ || ! defined $sub;
+                               next unless defined $sub;
 
                                # only consider internal files
                                # if the page explicitly depends