Update Account/Contributions for WebGUI::Definition and exceptions.

This commit is contained in:
Colin Kuskie 2010-01-28 13:18:04 -08:00
parent d8265febd6
commit 1b87d4877c

View file

@ -195,9 +195,13 @@ sub www_view {
#Export page to template
my @contribs = ();
foreach my $row ( @{$p->getPageData} ) {
ROW: foreach my $row ( @{$p->getPageData} ) {
my $assetId = $row->{assetId};
my $asset = WebGUI::Asset->newById( $session, $assetId );
my $asset = eval { WebGUI::Asset->newById( $session, $assetId ); };
if (Exception::Class->caught()) {
$session->log->error("Unable to instanciate assetId $assetId: $@");
next ROW;
}
my $props = $asset->get;
$props->{url} = $asset->getUrl;
if (ref $asset eq "WebGUI::Asset::Post") {