Skip to content

Commit

Permalink
fix: do not supress reraise in audit wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Jul 12, 2024
1 parent 41c23f7 commit abf0e82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cdf/core/feature_flag/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _flags(self) -> t.Dict[str, FlagAdapterResponse]:
"""Get the feature flags."""
if self.__flags is None:
self.__flags = self._read()
return self.__flags
return t.cast(t.Dict[str, FlagAdapterResponse], self.__flags)

def get(self, feature_name: str) -> FlagAdapterResponse:
"""Get a feature flag.
Expand Down
2 changes: 1 addition & 1 deletion src/cdf/core/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
self.audit_table,
pd.DataFrame([audit_event]),
)
raise e
raise e
audit_event["elapsed"] = time.perf_counter() - start
audit_event["success"] = not isinstance(rv, M.Err)
audit_event["properties"].update(output_props(rv))
Expand Down

0 comments on commit abf0e82

Please sign in to comment.