Skip to content
Permalink
Browse files

Fix a bad class name when trying to catch exceptions.

  • Loading branch information...
perlDreamer committed Mar 12, 2012
1 parent 5ad34a9 commit f59f8a80c4facf5bea2b939eee64b78f98a3a7da
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WebGUI/Workflow/Activity/ArchiveOldThreads.pm
@@ -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;
}

0 comments on commit f59f8a8

Please sign in to comment.
You can’t perform that action at this time.