diff --git a/lib/WebGUI/AssetAspect/RssFeed.pm b/lib/WebGUI/AssetAspect/RssFeed.pm index 780aeb044..badc52165 100644 --- a/lib/WebGUI/AssetAspect/RssFeed.pm +++ b/lib/WebGUI/AssetAspect/RssFeed.pm @@ -224,8 +224,8 @@ sub exportAssetCollateral { # next, get the contents, open the file, and write the contents to the file. my $fh = eval { $dest->open('>:utf8') }; if($@) { - WebGUI::Error->throw(error => "can't open " . $dest->absolute->stringify . " for writing: $!"); $exportSession->close; + WebGUI::Error->throw(error => "can't open " . $dest->absolute->stringify . " for writing: $!"); } $exportSession->asset($selfdupe); $exportSession->output->setHandle($fh);