mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 14:15:35 +08:00
Add format fallback to spreadsheet parser [SCI-11891]
This commit is contained in:
parent
2e47b46fba
commit
2948d2355c
1 changed files with 6 additions and 1 deletions
|
@ -61,7 +61,12 @@ class SpreadsheetParser
|
|||
"#{date_format} #{' %H:%M' if cell.value.is_a?(DateTime)}"
|
||||
)
|
||||
else
|
||||
cell&.formatted_value
|
||||
begin
|
||||
cell&.formatted_value
|
||||
rescue RuntimeError
|
||||
# fallback to raw value without format
|
||||
cell.value
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue