Skip to content

Commit

Permalink
Fix dynamic config builder mapping wrong arrtibute of mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Feb 11, 2024
1 parent 8ef5b83 commit cd3c039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/config/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def build_config(self, mode: SENTRY_MODE) -> dict[str, str | float | bool]:
if mode not in self.MODE_LIST:
raise ValueError(f"Invalid mode: {mode}")

return {attr: getattr(self, f"{mode}_{attr}") for attr in self.ATTR_LIST for mode in self.MODE_LIST}
return {attr: getattr(self, f"{mode}_{attr}") for attr in self.ATTR_LIST}

0 comments on commit cd3c039

Please sign in to comment.