diff options
author | Santo Cariotti <sancn@live.com> | 2017-12-31 12:18:43 +0100 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-12-31 12:18:43 +0100 |
commit | 77912d441774cf4559207d67f2472aaff6ec97d1 (patch) | |
tree | 138b0dab966c18b1da2e4ecae416740f39221fec | |
parent | 3282fe91dd01f006b416c0057f8c59f3b1b950d9 (diff) |
Fixed 'add'
-rw-r--r-- | lib/commands.py | 2 |
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')) |