From 3d83a5fd94c8ff3f6e8ba65e01955264f4a50618 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Fri, 20 Mar 2020 21:39:34 +0900 Subject: Print errors to stdout instead of stdout --- autotiling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autotiling.py') diff --git a/autotiling.py b/autotiling.py index 6aa9652..e430d32 100755 --- a/autotiling.py +++ b/autotiling.py @@ -15,6 +15,7 @@ License: GPL3 Dependencies: python-i3ipc>=2.0.1 (i3ipc-python) """ +import sys from i3ipc import Connection, Event @@ -41,7 +42,7 @@ def switch_splitting(i3, e): i3.command(new_layout) except Exception as e: - print('Error: {}'.format(e)) + print('Error: {}'.format(e), file=sys.stderr) pass -- cgit