Skip to content

Commit

Permalink
Fix a bad class name when trying to catch exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Mar 12, 2012
1 parent 5ad34a9 commit f59f8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm
Expand Up @@ -90,7 +90,7 @@ sub execute {
my $b = $session->db->read($sql,[$archiveDate, $cs->lineage.'%']);
THREAD: while (my ($id, $version) = $b->array) {
my $thread = eval { WebGUI::Asset->newById($session, $id, $version); };
if (WebGUI::Exception->caught()) {
if (Exception::Class->caught()) {
$session->log->error("Unable to instanciate Thread: $@");
next THREAD;
}
Expand Down

0 comments on commit f59f8a8

Please sign in to comment.