Fixed bug where empty journal file results in None being added to Journal.entries

This commit is contained in:
Manuel Ebert 2012-04-05 13:31:46 +02:00
parent 52ea01a039
commit 6ed607acc5

View file

@ -95,6 +95,7 @@ class Journal:
# In this case, just append line to our body.
current_entry.body += line
# Append last entry
if current_entry:
entries.append(current_entry)
journal_file.close()
for entry in entries: