index: move clean to finally

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/579/head
Varun Patil 2023-04-15 11:41:15 -07:00
parent 5fe7eb9be4
commit 039115d8f4
1 changed files with 2 additions and 2 deletions

View File

@ -190,10 +190,10 @@ class Index
$this->timelineWrite->processFile($file); $this->timelineWrite->processFile($file);
} catch (\Exception $e) { } catch (\Exception $e) {
$this->error("Failed to index file {$file->getPath()}: {$e->getMessage()}"); $this->error("Failed to index file {$file->getPath()}: {$e->getMessage()}");
} } finally {
$this->tempManager->clean(); $this->tempManager->clean();
} }
}
/** /**
* Get total number of files that are indexed. * Get total number of files that are indexed.