aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Miller <nwg.piotr@gmail.com>2020-04-08 21:47:36 +0200
committerGitHub <noreply@github.com>2020-04-08 21:47:36 +0200
commitb17c0c1b6713fb7c42f1bb1707270ab4291160c6 (patch)
treec39ee09be0c2d0fa7b98223c607f6212675293fa
parent798b9f4bf9bfd0f9a8912ac86de1c1243a216962 (diff)
parent01da9a9f5856ef01dff523c72f880d85f523d1ae (diff)
downloadautotiling-b17c0c1b6713fb7c42f1bb1707270ab4291160c6.tar.gz
Merge pull request #6 from Mayt38/remove-debug-error
bug in debugging fixed :D
-rwxr-xr-xautotiling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotiling.py b/autotiling.py
index 131e447..4913e9c 100755
--- a/autotiling.py
+++ b/autotiling.py
@@ -44,7 +44,7 @@ def switch_splitting(i3, e, debug):
result = i3.command(new_layout)
if result[0].success and debug:
print('Debug: Switched to {}'.format(new_layout), file=sys.stderr)
- else:
+ elif debug:
print('Error: Switch failed with err {}'.format(result[0].error), file=sys.stderr)
elif debug: