mirror of
https://codeberg.org/icewind/log-normalizer.git
synced 2026-06-03 13:54:11 +02:00
ignore logs with invalid floats
This commit is contained in:
parent
35f62c15bd
commit
33187185e5
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ async fn get_log(pool: &PgPool, id: i32) -> Result<Option<NormalizedLog>, MainEr
|
||||||
if formatted_err.starts_with("invalid value: integer ") {
|
if formatted_err.starts_with("invalid value: integer ") {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
if formatted_err.starts_with("invalid type: floating point") {
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
Err(err.into())
|
Err(err.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue