Update Account/Contributions for WebGUI::Definition and exceptions.
This commit is contained in:
parent
d8265febd6
commit
1b87d4877c
1 changed files with 6 additions and 2 deletions
|
|
@ -195,9 +195,13 @@ sub www_view {
|
||||||
|
|
||||||
#Export page to template
|
#Export page to template
|
||||||
my @contribs = ();
|
my @contribs = ();
|
||||||
foreach my $row ( @{$p->getPageData} ) {
|
ROW: foreach my $row ( @{$p->getPageData} ) {
|
||||||
my $assetId = $row->{assetId};
|
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;
|
my $props = $asset->get;
|
||||||
$props->{url} = $asset->getUrl;
|
$props->{url} = $asset->getUrl;
|
||||||
if (ref $asset eq "WebGUI::Asset::Post") {
|
if (ref $asset eq "WebGUI::Asset::Post") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue