From 77912d441774cf4559207d67f2472aaff6ec97d1 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sun, 31 Dec 2017 12:18:43 +0100 Subject: Fixed 'add' --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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')) -- cgit v1.2.3-18-g5258