Commit 8136ea3
committed
fix: Ensure timestamp conversion errors are surfaced
Added a try...except...raise block around the calls to
`dt_to_pb_timestamp_utc` for start_time and end_time.
Previously, an error during this conversion might not have been handled
explicitly at this point. This change guarantees that if the conversion
fails, the exception is propagated immediately, improving robustness and
aiding debugging by making the failure point clear.
Signed-off-by: Matthias Wende <[email protected]>1 parent 8283f6b commit 8136ea3
1 file changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1039 | 1045 | | |
1040 | 1046 | | |
1041 | 1047 | | |
| |||
1047 | 1053 | | |
1048 | 1054 | | |
1049 | 1055 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
| 1056 | + | |
| 1057 | + | |
1060 | 1058 | | |
1061 | 1059 | | |
1062 | 1060 | | |
| |||
0 commit comments