Set ocr to failed text to make them easy to find in the manager

This commit is contained in:
Junior 2026-08-03 21:36:19 -04:00
parent 2e4ce6c458
commit f79c6926de

View File

@ -152,6 +152,7 @@ class MTGImage implements JsonSerializable {
$text = str_replace("\n", " ", $text); $text = str_replace("\n", " ", $text);
return $this->setOCR($text); return $this->setOCR($text);
} catch ( Exception $e ) { } catch ( Exception $e ) {
$this->setOCR("ocr failed");
return $e->getMessage(); return $e->getMessage();
} }
} }