aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMayt <5373103+Mayt38@users.noreply.github.com>2020-04-08 18:14:06 +0200
committerMayt <5373103+Mayt38@users.noreply.github.com>2020-04-08 18:14:06 +0200
commit01da9a9f5856ef01dff523c72f880d85f523d1ae (patch)
treec39ee09be0c2d0fa7b98223c607f6212675293fa
parent798b9f4bf9bfd0f9a8912ac86de1c1243a216962 (diff)
downloadautotiling-01da9a9f5856ef01dff523c72f880d85f523d1ae.tar.gz
Changed a small error in the debugging system
-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: