style: Format code with linter and improve whitespace consistency

This commit is contained in:
Paul Gauthier (aider) 2025-03-06 12:14:20 -08:00
parent 47254be254
commit 95e1fe0446

View file

@ -1000,9 +1000,11 @@ class InputOutput:
if self.bell_on_next_input and self.notifications:
if self.notifications_command:
try:
result = subprocess.run(self.notifications_command, shell=True, capture_output=True)
result = subprocess.run(
self.notifications_command, shell=True, capture_output=True
)
if result.returncode != 0 and result.stderr:
error_msg = result.stderr.decode('utf-8', errors='replace')
error_msg = result.stderr.decode("utf-8", errors="replace")
self.tool_warning(f"Failed to run notifications command: {error_msg}")
except Exception as e:
self.tool_warning(f"Failed to run notifications command: {e}")