summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands.py b/lib/commands.py
index 3df279c..4927323 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -89,7 +89,7 @@ class Commands(object):
try:
with open(co['path'], 'ab+') as fout:
- if fout.readline().decode('utf-8') == '':
+ if fout.readline().decode('utf-8') is None:
fout.write(('\n').encode('utf-8'))
fout.write((msg + '\n').encode('utf-8'))