Skip to content

Commit

Permalink
Ignore unknown scc block
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas-done committed Feb 6, 2024
1 parent 12c6920 commit fdc93f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Code/Converters/SccConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ private static function sccToLines($data)
$part1 = substr($block, 0, 2);
$part2 = substr($block, 2, 2);
if (!isset(self::$characters[$part1]) || !isset(self::$characters[$part2])) {
throw new \Exception('unknown block: ' . $block);
continue; // ignore unknown block
// throw new \Exception('unknown block: ' . $block);
}
$text .= self::$characters[$part1] . self::$characters[$part2];
}
Expand Down

0 comments on commit fdc93f8

Please sign in to comment.