You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently a few spots in the code where we check that the input f64 is finite. If not, the function will panic (on purpose).
This is potentially catastrophic for flight critical systems. Instead, the code should return a Result for all of the functions that may fail.
Moreover, when using the epoch formatter, the errors should be incredibly clear, similarly to how good the errors are in rustc. It seems that the snafu library could handle this pretty well, so I should explore using snafu. Snafu supports no-std environments, even with Backtraces, so it may be worth using it instead of thiserror which is std-only.
I can't seem to figure out how to derive from BaseException. As such, the "fix" for the Python bare exception ruff error is simply to not use a bare exception and use except Exception as e instead (which is not in fact a bare exception).
There are currently a few spots in the code where we check that the input f64 is finite. If not, the function will panic (on purpose).
This is potentially catastrophic for flight critical systems. Instead, the code should return a Result for all of the functions that may fail.
Moreover, when using the epoch formatter, the errors should be incredibly clear, similarly to how good the errors are in
rustc
. It seems that thesnafu
library could handle this pretty well, so I should explore using snafu. Snafu supports no-std environments, even with Backtraces, so it may be worth using it instead ofthiserror
which is std-only.Cf. kube-rs/kube#453
The text was updated successfully, but these errors were encountered: