Fix a bad class name when trying to catch exceptions.

This commit is contained in:
Colin Kuskie 2012-03-12 10:09:03 -07:00
parent 5ad34a9266
commit f59f8a80c4

View file

@ -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;
}