summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <sancn@live.com>2017-12-31 12:18:43 +0100
committerSanto Cariotti <sancn@live.com>2017-12-31 12:18:43 +0100
commit77912d441774cf4559207d67f2472aaff6ec97d1 (patch)
tree138b0dab966c18b1da2e4ecae416740f39221fec
parent3282fe91dd01f006b416c0057f8c59f3b1b950d9 (diff)
Fixed 'add'
-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'))