(self)
| 17 | return self.settings |
| 18 | |
| 19 | def _read_settings_file(self) -> dict[str, str]: |
| 20 | if os.path.exists(self.settings_file_path): |
| 21 | with open(self.settings_file_path, 'r') as file: |
| 22 | try: |
| 23 | return json.load(file) |
| 24 | except Exception: |
| 25 | return {} |
| 26 | return {} |
| 27 | |
| 28 | def save_settings_to_file(self, settings_dict) -> None: |
| 29 | settings: dict[str, str] = self._read_settings_file() |
no outgoing calls
no test coverage detected